]> git.samba.org - obnox/wireshark/wip.git/blobdiff - gtk/hostlist_tcpip.c
some more : try to make read/write not break the build if the return value is not...
[obnox/wireshark/wip.git] / gtk / hostlist_tcpip.c
index b0b3332a81bebc0f70daa7c35ef7788b0629fc3f..b98ec910f9c58c638dfe6c896f1e15a3eb701ecf 100644 (file)
@@ -3,8 +3,8 @@
  *
  * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
@@ -37,6 +37,7 @@
 #include "../stat_menu.h"
 #include "gui_stat_menu.h"
 #include <epan/tap.h>
+#include <epan/emem.h>
 #include "../register.h"
 #include "hostlist_table.h"
 #include <epan/dissectors/packet-tcp.h>
@@ -60,7 +61,7 @@ tcpip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, co
 
 
 static void
-gtk_tcpip_hostlist_init(const char *optarg)
+gtk_tcpip_hostlist_init(const char *optarg, void* userdata _U_)
 {
        const char *filter=NULL;
 
@@ -78,14 +79,14 @@ gtk_tcpip_hostlist_init(const char *optarg)
 static void
 gtk_tcpip_hostlist_cb(GtkWidget *w _U_, gpointer d _U_)
 {
-       gtk_tcpip_hostlist_init("endpoints,tcp");
+       gtk_tcpip_hostlist_init("endpoints,tcp",NULL);
 }
 
 
 void
 register_tap_listener_tcpip_hostlist(void)
 {
-       register_stat_cmd_arg("endpoints,tcp", gtk_tcpip_hostlist_init);
+       register_stat_cmd_arg("endpoints,tcp", gtk_tcpip_hostlist_init,NULL);
 
        register_stat_menu_item("TCP (IPv4 & IPv6)", REGISTER_STAT_GROUP_ENDPOINT_LIST,
            gtk_tcpip_hostlist_cb, NULL, NULL, NULL);