aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/gtk/export_pdu_dlg.c2
-rw-r--r--ui/qt/export_pdu_dialog.cpp1
-rw-r--r--ui/tap_export_pdu.c7
-rw-r--r--ui/tap_export_pdu.h5
4 files changed, 7 insertions, 8 deletions
diff --git a/ui/gtk/export_pdu_dlg.c b/ui/gtk/export_pdu_dlg.c
index b44232c814..1cc1b979e5 100644
--- a/ui/gtk/export_pdu_dlg.c
+++ b/ui/gtk/export_pdu_dlg.c
@@ -1,5 +1,5 @@
/* export_pdu_dlg.c
- * Routines for exporting PDU:s to file
+ * Dialog for exporting PDUs to file
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
diff --git a/ui/qt/export_pdu_dialog.cpp b/ui/qt/export_pdu_dialog.cpp
index 83703eea95..42506a555c 100644
--- a/ui/qt/export_pdu_dialog.cpp
+++ b/ui/qt/export_pdu_dialog.cpp
@@ -1,4 +1,5 @@
/* export_pdu_dialog.cpp
+ * Dialog for exporting PDUs to file
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
diff --git a/ui/tap_export_pdu.c b/ui/tap_export_pdu.c
index a981b7e37c..86d92806a1 100644
--- a/ui/tap_export_pdu.c
+++ b/ui/tap_export_pdu.c
@@ -1,5 +1,5 @@
/* tap_export_pdu.c
- * Routines for exporting PDU:s to file
+ * Routines for exporting PDUs to file
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
@@ -80,7 +80,7 @@ export_pdu_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt _U_, co
return FALSE; /* Do not redraw */
}
-void
+static void
exp_pdu_file_open(exp_pdu_t *exp_pdu_tap_data)
{
int import_file_fd;
@@ -188,10 +188,9 @@ end:
}
gboolean
-do_export_pdu(const char *filter, gchar *tap_name, gpointer data)
+do_export_pdu(const char *filter, gchar *tap_name, exp_pdu_t *exp_pdu_tap_data)
{
GString *error_string;
- exp_pdu_t *exp_pdu_tap_data = (exp_pdu_t *)data;
/* Register this tap listener now */
error_string = register_tap_listener(tap_name, /* The name of the tap we want to listen to */
diff --git a/ui/tap_export_pdu.h b/ui/tap_export_pdu.h
index 25c39d733a..df6b5bad45 100644
--- a/ui/tap_export_pdu.h
+++ b/ui/tap_export_pdu.h
@@ -1,5 +1,5 @@
/* tap_export_pdu.h
- * Routines for exporting PDU:s to file
+ * Routines for exporting PDUs to file
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
@@ -32,8 +32,7 @@ typedef struct _exp_pdu_t {
wtap_dumper* wdh;
} exp_pdu_t;
-void exp_pdu_file_open(exp_pdu_t *exp_pdu_tap_data);
-gboolean do_export_pdu(const char *filter, gchar *tap_name, gpointer data);
+gboolean do_export_pdu(const char *filter, gchar *tap_name, exp_pdu_t *data);
#ifdef __cplusplus
}