aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-02-07 01:32:53 +0000
committerGuy Harris <guy@alum.mit.edu>2005-02-07 01:32:53 +0000
commit641106f21de7c2bb6e83ea9ba62ea2f8d69c04fa (patch)
tree86a82b9370873a627aa1f0eeb5be5067f24dc035 /file.c
parent1c6b2cf0e350951dc9b0b4a6e783db33ad24e480 (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. svn path=/trunk/; revision=13331
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;