forked from osmocom/wireshark
Use the newly added "report_failure" rather than g_warning if no xml library
present. svn path=/trunk/; revision=10687
This commit is contained in:
parent
e3d1a255a1
commit
f2ecb66547
|
@ -3,7 +3,7 @@
|
||||||
* exists so that the library can be loaded on systems that
|
* exists so that the library can be loaded on systems that
|
||||||
* have it.
|
* have it.
|
||||||
*
|
*
|
||||||
* $Id: xmlstub.c,v 1.3 2004/01/18 16:19:15 jmayer Exp $
|
* $Id: xmlstub.c,v 1.4 2004/04/25 10:38:24 etxrab Exp $
|
||||||
*
|
*
|
||||||
* Copyright (c) 2001 by David Frascone <dave@frascone.com>
|
* Copyright (c) 2001 by David Frascone <dave@frascone.com>
|
||||||
*
|
*
|
||||||
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <gmodule.h>
|
#include <gmodule.h>
|
||||||
|
#include <epan/report_err.h>
|
||||||
|
|
||||||
/* XML Stub routines */
|
/* XML Stub routines */
|
||||||
#define IN_XMLSTUB
|
#define IN_XMLSTUB
|
||||||
|
@ -68,7 +69,7 @@ loadLibXML(void)
|
||||||
* under windows? Perhaps we should check . . .
|
* under windows? Perhaps we should check . . .
|
||||||
*/
|
*/
|
||||||
if ((handle = g_module_open(XML_LIBRARY, G_MODULE_BIND_LAZY)) == NULL) {
|
if ((handle = g_module_open(XML_LIBRARY, G_MODULE_BIND_LAZY)) == NULL) {
|
||||||
g_warning("XMLStub: Unable to open module " XML_LIBRARY);
|
report_failure("XMLStub: Unable to open module " XML_LIBRARY );
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue