aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-07 01:32:53 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-07 01:32:53 +0000
commit23f22274730fbc5fdd43c34f460e4db9371f8889 (patch)
tree86a82b9370873a627aa1f0eeb5be5067f24dc035 /file.c
parent4c7def914f4eee5f20fc21429a0d7369a612ac16 (diff)
Declare "cf_callback_t" before using it in a further declaration.
Mark the "func" argument to "cf_callback_remove()" as unused. Get rid of the "iface" argument to "cf_start_tail()", as it's no longer used. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13331 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/file.c b/file.c
index 4efffb2e14..c08a3c8d28 100644
--- a/file.c
+++ b/file.c
@@ -140,8 +140,6 @@ static gboolean copy_binary_file(const char *from_filename, const char *to_fil
#define FRAME_DATA_CHUNK_SIZE 1024
-typedef void (*cf_callback_t) (gint event, gpointer data, gpointer user_data);
-
/* one callback for now, we could have a list later */
cf_callback_t cf_cb = NULL;
gpointer cf_cb_user_data = NULL;
@@ -165,7 +163,7 @@ cf_callback_add(cf_callback_t func, gpointer user_data)
}
void
-cf_callback_remove(cf_callback_t func)
+cf_callback_remove(cf_callback_t func _U_)
{
g_assert(cf_cb != NULL);
cf_cb = NULL;
@@ -487,7 +485,7 @@ cf_read(capture_file *cf)
#ifdef HAVE_LIBPCAP
cf_status_t
-cf_start_tail(capture_file *cf, const char *fname, const char *iface, gboolean is_tempfile, int *err)
+cf_start_tail(capture_file *cf, const char *fname, gboolean is_tempfile, int *err)
{
cf_status_t cf_status;