removed various gcc warnings
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 30 Apr 2005 17:23:33 +0000 (17:23 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 30 Apr 2005 17:23:33 +0000 (17:23 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14246 f5534014-38df-0310-8fa8-9805f1628bb7

capture.c
gtk/main.c
gtk/proto_draw.c

index 50336593e73d67201667a69e256e02cf7e24f007..db8ff029ef79db21108fbe8edc241b4cc0f463d6 100644 (file)
--- a/capture.c
+++ b/capture.c
 
 #ifdef HAVE_LIBPCAP
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
index 8c144d6607b4546b8ba84058134d11db06e847ae..59daacbe2367f4bb277f8018e3eb5f3621e83dfd 100644 (file)
@@ -1402,7 +1402,7 @@ main_cf_cb_live_capture_fixed_started(capture_options *capture_opts)
 }
 
 static void
-main_cf_cb_live_capture_fixed_finished(capture_file *cf)
+main_cf_cb_live_capture_fixed_finished(capture_file *cf _U_)
 {
     /* Pop the "<live capture in progress>" message off the status bar. */
     statusbar_pop_file_msg();
index d4514dd0c4f9a08436a0bedeaaa38c89755e2b75..82b9f824e5ad6612798fe88120b5410e8a098b58 100644 (file)
@@ -1644,7 +1644,7 @@ void tree_cell_renderer(GtkTreeViewColumn *tree_column _U_,
 
 #if GTK_MAJOR_VERSION >= 2
 static int
-tree_view_key_pressed_cb(GtkCTree *ctree, GdkEventKey *event, gpointer user_data _U_)
+tree_view_key_pressed_cb(GtkCTree *ctree _U_, GdkEventKey *event, gpointer user_data _U_)
 {
     GtkTreeSelection* selection;
     GtkTreeIter iter;