[telegnome] Declare functions as (void) rather than () to indicate no arguments.



commit f082b4048aff8f13f73297dc168385fbf6479f04
Author: Colin Watson <cjwatson debian org>
Date:   Sat Oct 11 01:07:23 2014 +0100

    Declare functions as (void) rather than () to indicate no arguments.

 ChangeLog   |    4 ++++
 src/gui.c   |   16 ++++++++--------
 src/prefs.c |   12 ++++++------
 src/prefs.h |    2 +-
 src/view.c  |    2 +-
 src/view.h  |    4 ++--
 6 files changed, 22 insertions(+), 18 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b3ddecd..35ad4bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-10-11  Colin Watson  <cjwatson debian org>
 
+       Declare functions as (void) rather than () to indicate no arguments.
+
+2014-10-11  Colin Watson  <cjwatson debian org>
+
        * .gitignore: Add *~ and compile.
 
 2014-10-11  Colin Watson  <cjwatson debian org>
diff --git a/src/gui.c b/src/gui.c
index 8ea6d98..d444e6d 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -37,7 +37,7 @@
 static TgGui gui;
 
 static void
-tg_gui_update_title_bar()
+tg_gui_update_title_bar(void)
 {
     char buf[100];
     /* update the title bar */
@@ -170,7 +170,7 @@ tg_gui_channel_select(GtkWidget *w, gpointer data)
  * create the channel menu
  */
 static GtkWidget *
-tg_gui_create_channel_menu()
+tg_gui_create_channel_menu(void)
 {
     GtkWidget *menu, *item;
     int i;
@@ -201,7 +201,7 @@ tg_gui_create_channel_menu()
  * Loads all the channels from the config and puts them in the gui.channels GSList
  */
 static void
-tg_gui_load_channels_from_config()
+tg_gui_load_channels_from_config(void)
 {
     int count,i;
     TgChannel *channel;
@@ -233,7 +233,7 @@ tg_gui_load_channels_from_config()
 }
 
 static void
-tg_gui_refresh_channel_menu()
+tg_gui_refresh_channel_menu(void)
 {
     /* dispose the menu if it was already added */
     if (gui.channel_menu != NULL) {
@@ -265,7 +265,7 @@ tg_gui_print_in_statusbar(const char *buf)  /*FIXME: buffersize*/
  * create a new entry 
  */
 static GtkWidget * 
-tg_gui_new_entry ()
+tg_gui_new_entry (void)
 {
        GtkWidget *entry=NULL;
        entry=gtk_entry_new();
@@ -323,7 +323,7 @@ tg_gui_cb_toggle_paging(GtkWidget *w, gpointer data)
  * create a new toolbar 
  */
 static GtkWidget *
-tg_gui_new_toolbar ()
+tg_gui_new_toolbar (void)
 {
     GtkWidget *icon, *toolbar, *entry, *hbox, *w;
     
@@ -603,7 +603,7 @@ tg_gui_cb_about (GtkWidget* widget, gpointer data)
 }
 
 static void
-tg_gui_refresh_timer ()
+tg_gui_refresh_timer (void)
 {
     gdouble perc = gtk_progress_bar_get_fraction(gui.progress);
 
@@ -620,7 +620,7 @@ tg_gui_refresh_timer ()
 }
 
 static void
-tg_gui_prefs_close_cb ()
+tg_gui_prefs_close_cb (void)
 {
     tg_gui_refresh_channel_menu();
     tg_gui_refresh_timer();
diff --git a/src/prefs.c b/src/prefs.c
index 12fa375..39b3c37 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -44,20 +44,20 @@ typedef struct _TgPrefsWindow {
     GtkWidget *channel_label;
     gint channel_count;
     
-    void (*close_callback)();
+    void (*close_callback)(void);
 } TgPrefsWindow;
 
 static TgPrefsWindow *prefs_window;
 
 void
-tg_prefs_set_close_cb( void (*c)() )
+tg_prefs_set_close_cb( void (*c)(void) )
 {
     g_assert( prefs_window != NULL );
     prefs_window->close_callback = c;
 }
 
 static void
-tg_prefs_fill_channel_list()
+tg_prefs_fill_channel_list(void)
 {
     int i, newrow;
     TgChannel *channel;
@@ -214,7 +214,7 @@ tg_prefs_channel_list_click_cb(GtkWidget *clist, gint row, gint column,
 }
 
 static void 
-tg_prefs_channels_renum()
+tg_prefs_channels_renum(void)
 {
     int i;
     TgChannel *channel;
@@ -319,7 +319,7 @@ tg_prefs_channel_delete_cb(void)
 
 /* not a good idea to have a 'misc' page, but i cant come up with a better name */
 static GtkWidget *
-tg_prefs_construct_misc_page()
+tg_prefs_construct_misc_page(void)
 {
     GtkWidget *table, *frame, *label, *entry, *proxy_label, *proxy_entry;
     GtkAdjustment *adj;
@@ -362,7 +362,7 @@ tg_prefs_construct_misc_page()
 }
 
 static GtkWidget *
-tg_prefs_construct_channels_page()
+tg_prefs_construct_channels_page(void)
 {
     GtkWidget *hbox, *vbox, *btn;
     char *titles[2] = { N_("Country"), N_("Name") };
diff --git a/src/prefs.h b/src/prefs.h
index a1d8481..67ae232 100644
--- a/src/prefs.h
+++ b/src/prefs.h
@@ -36,6 +36,6 @@
 #define TELEGNOME_NOTFOUND     "telegnome/telegnome-logo.png"
 
 void tg_prefs_show(void);
-void tg_prefs_set_close_cb( void (*c)() );
+void tg_prefs_set_close_cb( void (*c)(void) );
 
 #endif /* __PREFS_H__ */
diff --git a/src/view.c b/src/view.c
index 486868b..aec9f2e 100644
--- a/src/view.c
+++ b/src/view.c
@@ -33,7 +33,7 @@
 #include "pixpack.h"
 
 TgView *
-tg_view_new()
+tg_view_new(void)
 {
     TgView *v;
     
diff --git a/src/view.h b/src/view.h
index 4d75ba4..c6eec27 100644
--- a/src/view.h
+++ b/src/view.h
@@ -47,12 +47,12 @@ typedef struct _TgView {
     GtkWidget *box;
 } TgView;
     
-TgView *tg_view_new();
+TgView *tg_view_new(void);
 void tg_view_set_error_handler(TgView *view, void (*e)(const char *));
 void tg_view_error(TgView *view, const char *c);
 gint tg_view_update_pixmap(TgView *view, GdkPixbuf *pixbuf);
 gint tg_view_update_page(TgView *view, int *major_nr, int *minor_nr);
 GtkWidget *tg_view_get_widget(TgView *view);
-void tg_view_free();
+void tg_view_free(TgView *view);
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]