More eradication of old-style function definitions.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 May 2011 22:18:32 +0000 (22:18 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 May 2011 22:18:32 +0000 (22:18 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37216 f5534014-38df-0310-8fa8-9805f1628bb7

color_filters.c
epan/funnel.c
epan/packet.c
epan/wslua/init_wslua.c
file.c
gtk/prefs_stream.c
gtk/sctp_stat_dlg.c
print.c
u3.c

index 267a5ba6a548280bc28a38b1d2ecd494425cba1a..2c21bfb14b56b20811128f30760740616c815d7d 100644 (file)
@@ -201,7 +201,7 @@ color_filters_set_tmp(guint8 filt_nr, gchar *filter, gboolean disabled)
 
 /* Reset the temporary colorfilters */
 void
-color_filters_reset_tmp()
+color_filters_reset_tmp(void)
 {
        guint8 i;
 
index 83a74afee943029138bde121e57f5dcac5541501..7ba4142c0c5a764f18334c9dfc0491e8c7e3ca90 100644 (file)
@@ -44,7 +44,7 @@ typedef struct _funnel_menu_t {
 static const funnel_ops_t* ops = NULL;
 static funnel_menu_t* menus = NULL;
 
-const funnel_ops_t* funnel_get_funnel_ops() { return ops;  }
+const funnel_ops_t* funnel_get_funnel_ops(void) { return ops;  }
 void funnel_set_funnel_ops(const funnel_ops_t* o) { ops = o; }
 
 void funnel_register_menu(const char *name,
index 2ea73b77d8a1f5f58aed7f10e4194df9a3818390..a6e78f05ba44b66ea8791fb0eb68b9f990ab50a1 100644 (file)
@@ -1902,7 +1902,7 @@ dissector_dump_decodes_display(const gchar *table_name,
 }
 
 void
-dissector_dump_decodes()
+dissector_dump_decodes(void)
 {
        dissector_all_tables_foreach(dissector_dump_decodes_display, NULL);
 }
@@ -1921,7 +1921,7 @@ register_postdissector(dissector_handle_t handle)
 }
 
 gboolean
-have_postdissector()
+have_postdissector(void)
 {
        guint i;
        dissector_handle_t handle;
index 33281421f38e27146fdcfd5cdf67992285283553..15f192a7d7459e83a94b2c9817416a8d8f974385 100644 (file)
@@ -436,5 +436,5 @@ int wslua_init(lua_State* LS) {
     return 0;
 }
 
-lua_State* wslua_state() { return L; }
+lua_State* wslua_state(void) { return L; }
 
diff --git a/file.c b/file.c
index b114844a6ca5610a6dd1b2a7dfc6380d974ea48b..afdaa0d41065ce5a6685afb35ec00527ccb05ee9 100644 (file)
--- a/file.c
+++ b/file.c
@@ -3379,7 +3379,7 @@ cf_goto_frame(capture_file *cf, guint fnumber)
 }
 
 gboolean
-cf_goto_top_frame()
+cf_goto_top_frame(void)
 {
   /* Find and select */
   new_packet_list_select_first_row();
@@ -3387,7 +3387,7 @@ cf_goto_top_frame()
 }
 
 gboolean
-cf_goto_bottom_frame()
+cf_goto_bottom_frame(void)
 {
   /* Find and select */
   new_packet_list_select_last_row();
index a469bde9d035d9ca6b8d8995d05a06eca4c4ae5e..64449234e3a2337032dd57afacbd734e7b841172 100644 (file)
@@ -65,7 +65,7 @@ static void update_current_color(GtkWidget *, gpointer);
 static GdkColor tcolors[MAX_IDX], *curcolor = NULL;
 
 GtkWidget *
-stream_prefs_show()
+stream_prefs_show(void)
 {
   GtkWidget *main_vb, *main_tb, *label, *combo_box;
   GtkWidget *sample, *colorsel;
index 744d1bb960506c50fa0e63c5088c00a1920fecf0..948dcf650da2ad6b79c7b16555310d078924df82 100644 (file)
@@ -294,13 +294,13 @@ dlg_destroy(GtkWidget *w _U_, gpointer user_data _U_)
 }
 
 void
-decrease_analyse_childcount()
+decrease_analyse_childcount(void)
 {
        n_children--;
 }
 
 void
-increase_analyse_childcount()
+increase_analyse_childcount(void)
 {
        n_children++;
 }
diff --git a/print.c b/print.c
index bc5b5ac05a99cd2993ee1cf2a4d984565ee6931a..1fbaf1acfa850d1898b316a4bd6e78a80129cc86 100644 (file)
--- a/print.c
+++ b/print.c
@@ -1285,7 +1285,7 @@ print_stream_ps_stdio_new(FILE *fh)
        return print_stream_ps_alloc(TRUE, fh);
 }
 
-output_fields_t* output_fields_new()
+output_fields_t* output_fields_new(void)
 {
     output_fields_t* fields = g_new(output_fields_t, 1);
     fields->print_header = FALSE;
diff --git a/u3.c b/u3.c
index ec15202540077a0136fcdbd071d2c7ca1bcf30fa..e26731e288604931698204a20c75c973e5f603db 100644 (file)
--- a/u3.c
+++ b/u3.c
@@ -61,7 +61,7 @@ static gchar *newpath = NULL;
 
 static char *u3_change_path(char *path, const char *old, const char *new);
 
-gboolean u3_active()
+gboolean u3_active(void)
 {
 
   return (
@@ -108,7 +108,7 @@ void u3_runtime_info(GString *str)
 
 }
 
-void u3_register_pid()
+void u3_register_pid(void)
 {
   int  pid;
   int   pid_fd;
@@ -142,7 +142,7 @@ void u3_register_pid()
 }
 
 
-void u3_deregister_pid()
+void u3_deregister_pid(void)
 {
   if(pid_file) {
     /* we don't care if we succeed or fail - u3utils may have deleted the file */