This ain't C++; you have to put "void" in as the argument list of

functions that take no arguments, otherwise the function is treated as a
crufty old C function with undeclared arguments.

svn path=/trunk/; revision=37211
This commit is contained in:
Guy Harris 2011-05-17 21:26:25 +00:00
parent b216f4b2ac
commit da1403c6dd
7 changed files with 9 additions and 9 deletions

4
file.h
View File

@ -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.

View 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,

View 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;

View 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,

View 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;

View 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;

View 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