aboutsummaryrefslogtreecommitdiffstats
path: root/xmlstub.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2004-04-25 10:38:24 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2004-04-25 10:38:24 +0000
commit908594c512ed0361629ab7c6e66101dd59250af1 (patch)
tree675a5785c4b0519efa5df5bbfad8b402b951fd84 /xmlstub.c
parente4427ce8e59138ad4f4b23813eca1322933572ac (diff)
Use the newly added "report_failure" rather than g_warning if no xml library
present. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10687 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'xmlstub.c')
-rw-r--r--xmlstub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmlstub.c b/xmlstub.c
index f58f8d4027..73a96ed73e 100644
--- a/xmlstub.c
+++ b/xmlstub.c
@@ -3,7 +3,7 @@
* exists so that the library can be loaded on systems that
* 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>
*
@@ -28,6 +28,7 @@
#include <glib.h>
#include <gmodule.h>
+#include <epan/report_err.h>
/* XML Stub routines */
#define IN_XMLSTUB
@@ -68,7 +69,7 @@ loadLibXML(void)
* under windows? Perhaps we should check . . .
*/
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);
}