From Harald Welte:
[obnox/wireshark/wip.git] / tap-ansi_astat.c
index 8b285eaa70eabb19992df91db3532c122b498449..ee368abb748bd4a76bcfc35bddd0c2449667d7cb 100644 (file)
@@ -5,8 +5,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
@@ -45,7 +45,6 @@
 #include <epan/stat_cmd_args.h>
 #include <epan/dissectors/packet-bssap.h>
 #include <epan/dissectors/packet-ansi_a.h>
-#include "register.h"
 
 
 typedef struct _ansi_a_stat_t {
@@ -135,7 +134,7 @@ ansi_a_stat_draw(
 
 
 static void
-ansi_a_stat_init(const char *optarg _U_)
+ansi_a_stat_init(const char *optarg _U_, void* userdata _U_)
 {
     ansi_a_stat_t      *stat_p;
     GString            *err_p;
@@ -145,7 +144,7 @@ ansi_a_stat_init(const char *optarg _U_)
     memset(stat_p, 0, sizeof(ansi_a_stat_t));
 
     err_p =
-       register_tap_listener("ansi_a", stat_p, NULL,
+       register_tap_listener("ansi_a", stat_p, NULL, 0,
            NULL,
            ansi_a_stat_packet,
            ansi_a_stat_draw);
@@ -163,5 +162,5 @@ ansi_a_stat_init(const char *optarg _U_)
 void
 register_tap_listener_ansi_astat(void)
 {
-    register_stat_cmd_arg("ansi_a,", ansi_a_stat_init);
+    register_stat_cmd_arg("ansi_a,", ansi_a_stat_init,NULL);
 }