This ain't C++; you have to put "void" in as the argument list of
authorGuy Harris <guy@alum.mit.edu>
Tue, 17 May 2011 21:26:25 +0000 (21:26 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 17 May 2011 21:26:25 +0000 (21:26 -0000)
functions that take no arguments, otherwise the function is treated as a
crufty old C function with undeclared arguments.

svn path=/trunk/; revision=37211

file.h
gtk/export_object.h
gtk/export_object_smb.c
gtk/file_import_dlg.c
gtk/main_welcome.c
gtk/new_packet_list.c
gtk/text_import.h

diff --git a/file.h b/file.h
index b4883cd5fd86cb1dd36e63e56873248e14a18744..842e48608aea9c5bcdebfa918bb87178b55e1fc8 100644 (file)
--- a/file.h
+++ b/file.h
@@ -478,14 +478,14 @@ gboolean cf_find_packet_time_reference(capture_file *cf, search_direction dir);
  *
  * @return TRUE if the first row exists, FALSE otherwise
  */
-gboolean cf_goto_top_frame();
+gboolean cf_goto_top_frame(void);
 
 /**
  * GoTo Packet in last row.
  *
  * @return TRUE if last row exists, FALSE otherwise
  */
-gboolean cf_goto_bottom_frame();
+gboolean cf_goto_bottom_frame(void);
 
 /**
  * GoTo Packet with the given row.
index eba4cdd17583c47d0b6e4d0ca2b5545f94e14c14..7ecdf36b19f665198ecf26944bb2f9c97aeaf40b 100644 (file)
@@ -53,7 +53,7 @@ export objects, then it must specifiy a function that cleans up all
 those data structures. This function is passed to export_object_window
 and called when tap reset or windows closes occurs. If no function is needed
 a NULL value should be passed instead */
-typedef void (*eo_protocoldata_reset_cb)();
+typedef void (*eo_protocoldata_reset_cb)(void);
 
 
 void export_object_window(const gchar *tapname, const gchar *name,
index e2795c6f99b49ace4c4302b3bb794eeeb8b3f410..2f183e266cca4be22edfcfe7cb9b3cfc4fad1571 100644 (file)
@@ -419,7 +419,7 @@ eo_smb_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt _U_, const
    to cleanup any previous private data of the export object functionality before perform
    the eo_reset function or when the window closes */
 void
-eo_smb_cleanup()
+eo_smb_cleanup(void)
 {
        int              i,last;
        active_file     *in_list_file;
index 778be7caf4168f05228fe17b3d2aa615a98bc07b..2c49e221fc509a059a48ffbfcdf17571c862fa9d 100644 (file)
@@ -822,7 +822,7 @@ file_import_ok_cb(GtkWidget *widget _U_, gpointer data)
  * Dialog creator
  */
 static GtkWidget *
-file_import_dlg_new()
+file_import_dlg_new(void)
 {
     GtkWidget  *main_w, *main_vb,
                *input_frm, *input_tb, *input_vb,
index cede99cc1dfe69dc8bf2086d68bc35bc7a995d0d..b2bbb02f64b53aadbcea3fbc5c558ab4b938e508 100644 (file)
@@ -651,7 +651,7 @@ welcome_if_new(const if_info_t *if_info, const gchar *user_descr, GdkColor *topi
 
 /* load the sorted list of interfaces */
 static GList *
-welcome_if_panel_get_if_list()
+welcome_if_panel_get_if_list(void)
 {
     GList *if_list;
     int err;
index 05cd8cd502d6e87ffc2c737548c812c6663dbc52..d9ddd6e093272928c40578e91947e7b803904d92 100644 (file)
@@ -1516,7 +1516,7 @@ new_packet_list_unmark_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _
 }
 
 static void
-toggle_mark_all_displayed_frames()
+toggle_mark_all_displayed_frames(void)
 {
        /* XXX: we might need a progressbar here */
        guint32 framenum;
@@ -1617,7 +1617,7 @@ new_packet_list_unignore_all_frames_cb(GtkWidget *w _U_, gpointer data _U_)
 
 
 static void
-untime_reference_all_frames()
+untime_reference_all_frames(void)
 {
        /* XXX: we might need a progressbar here */
        guint32 framenum;
index f85daef5191d4444d85be6d7b2cd895cbea0ff5f..c64d4626656a2453825154d11bf551ee23e7143a 100644 (file)
@@ -82,6 +82,6 @@ typedef struct
 } text_import_info_t;
 
 void text_import_setup(text_import_info_t *info);
-void text_import_cleanup();
+void text_import_cleanup(void);
 
 #endif