Ethereal-dev: [Ethereal-dev] Fix for plugin_api

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Lars Roland <lars.roland@xxxxxxx>
Date: Mon, 02 Feb 2004 15:59:13 +0100
Hello all,

attached is a small fix for the plugin api. please check in.

Regards,

Lars
Index: Xplugin_table.h
===================================================================
RCS file: /cvsroot/ethereal/plugins/Xplugin_table.h,v
retrieving revision 1.21
diff -u -r1.21 Xplugin_table.h
--- Xplugin_table.h	1 Feb 2004 06:49:25 -0000	1.21
+++ Xplugin_table.h	2 Feb 2004 14:53:05 -0000
@@ -98,7 +98,7 @@
 typedef gint (*addr_tvb_get_nstringz0) (tvbuff_t *, gint, guint, guint8 *);
 typedef gint (*addr_tvb_find_line_end) (tvbuff_t *, gint, int, gint *, gboolean);
 typedef gint (*addr_tvb_find_line_end_unquoted) (tvbuff_t *, gint, int, gint *);
-typedef gint (*addr_tvb_strneql) (tvbuff_t *, gint, const guint8 *, gint);
+typedef gint (*addr_tvb_strneql) (tvbuff_t *, gint, const gchar *, gint);
 typedef gint (*addr_tvb_strncaseeql) (tvbuff_t *, gint, const gchar *, gint);
 typedef gchar *(*addr_tvb_bytes_to_str) (tvbuff_t *, gint, gint);
 typedef struct pref_module *(*addr_prefs_register_protocol) (int, void (*) (void));
Index: plugin_api_list.c
===================================================================
RCS file: /cvsroot/ethereal/plugins/plugin_api_list.c,v
retrieving revision 1.24
diff -u -r1.24 plugin_api_list.c
--- plugin_api_list.c	1 Feb 2004 06:49:25 -0000	1.24
+++ plugin_api_list.c	2 Feb 2004 14:53:05 -0000
@@ -183,7 +183,7 @@
 gint tvb_find_line_end(tvbuff_t*, gint, int, gint *, gboolean);
 gint tvb_find_line_end_unquoted(tvbuff_t*, gint, int, gint *);
 
-gint tvb_strneql(tvbuff_t*, gint, const guint8 *, gint);
+gint tvb_strneql(tvbuff_t*, gint, const gchar *, gint);
 gint tvb_strncaseeql(tvbuff_t*, gint, const gchar *, gint);
 
 gchar *tvb_bytes_to_str(tvbuff_t*, gint, gint len);