do not try to free the isup tap data.
[obnox/wireshark/wip.git] / tap-gsm_astat.c
index 33b6f91120016348bc79bc178148bff23b4217d0..dd940f7d6e71653050b0f2f92402057594fbe51e 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2003, Michael Lum <mlum [AT] telostech.com>
  * In association with Telos Technology Inc.
  *
- * $Id: tap-gsm_astat.c,v 1.2 2004/05/09 10:03:38 guy Exp $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
  * This TAP provides statistics for the GSM A Interface:
  */
 
-/* With MSVC and a libethereal.dll this file needs to import some variables 
-   in a special way. Therefore _NEED_VAR_IMPORT_ is defined. */ 
-#define _NEED_VAR_IMPORT_
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -45,9 +41,9 @@
 #include <string.h>
 #include "epan/packet_info.h"
 #include "epan/value_string.h"
-#include "tap.h"
-#include "packet-bssap.h"
-#include "packet-gsm_a.h"
+#include <epan/tap.h>
+#include <epan/dissectors/packet-bssap.h>
+#include <epan/dissectors/packet-gsm_a.h>
 #include "register.h"
 
 
@@ -66,15 +62,12 @@ typedef struct _gsm_a_stat_t {
 static int
 gsm_a_stat_packet(
     void                       *tapdata,
-    packet_info                        *pinfo,
+    packet_info                        *pinfo _U_,
     epan_dissect_t             *edt _U_,
-    void                       *data)
+    const void                 *data)
 {
     gsm_a_stat_t               *stat_p = tapdata;
-    gsm_a_tap_rec_t            *tap_p = data;
-
-
-    pinfo = pinfo;
+    const gsm_a_tap_rec_t      *tap_p = data;
 
     switch (tap_p->pdu_type)
     {
@@ -307,5 +300,5 @@ gsm_a_stat_init(char *optarg)
 void
 register_tap_listener_gsm_astat(void)
 {
-    register_ethereal_tap("gsm_a,", gsm_a_stat_init);
+    register_tap_listener_cmd_arg("gsm_a,", gsm_a_stat_init);
 }