]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Fix strict prototype warnings
authorPatrick Griffis <redacted>
Thu, 18 Feb 2016 13:57:22 +0000 (08:57 -0500)
committerPatrick Griffis <redacted>
Thu, 18 Feb 2016 13:57:22 +0000 (08:57 -0500)
16 files changed:
plugins/checksum/checksum.c
plugins/fishlim/keystore.c
plugins/fishlim/plugin_hexchat.c
plugins/fishlim/plugin_hexchat.h
plugins/python/python.c
src/common/dcc.c
src/common/fe.h
src/common/plugin-identd.h
src/common/plugin.c
src/common/text.c
src/common/text.h
src/fe-gtk/fkeys.c
src/fe-gtk/ignoregui.c
src/fe-gtk/menu.c
src/fe-gtk/plugin-tray.c
src/fe-gtk/sexy-spell-entry.c

index 9a7f0ebd80b4b39e28fc8a969f6ca87e2136f563..6aa64b642a10aa1562b070013d42982d969a5def 100644 (file)
@@ -58,7 +58,7 @@ set_limit (char *size)
 }
 
 static int
-get_limit ()
+get_limit (void)
 {
        int size = hexchat_pluginpref_get_int (ph, "limit");
 
index 843739961de4559eb28d38f726f152b3f0cf61c8..298b9fa32d07c97de7dfefb1905ed1d0437aa6af 100644 (file)
@@ -39,7 +39,7 @@ static char *keystore_password = NULL;
 /**
  * Opens the key store file: ~/.config/hexchat/addon_fishlim.conf
  */
-static GKeyFile *getConfigFile() {
+static GKeyFile *getConfigFile(void) {
     gchar *filename = get_config_filename();
     
     GKeyFile *keyfile = g_key_file_new();
@@ -55,7 +55,7 @@ static GKeyFile *getConfigFile() {
 /**
  * Returns the key store password, or the default.
  */
-static const char *get_keystore_password() {
+static const char *get_keystore_password(void) {
     return (keystore_password != NULL ?
         keystore_password :
         /* Silly default value... */
index 556a2f5184ed917d85a15ee7c1bd33a14ec2ee9c..0afecd82255b79809e640d1964ded8f981c3d5eb 100644 (file)
@@ -48,7 +48,7 @@ static hexchat_plugin *ph;
 /**
  * Returns the path to the key store file.
  */
-gchar *get_config_filename() {
+gchar *get_config_filename(void) {
     char *filename_fs, *filename_utf8;
 
     filename_utf8 = g_build_filename(hexchat_get_info(ph, "configdir"), "addon_fishlim.conf", NULL);
index f60522e6f05fa08f95da5bca715e2cf0183cde84..d619d239f094278f0a2e86fbc0d5b94e1e9d0175 100644 (file)
@@ -25,7 +25,7 @@
 #ifndef PLUGIN_HEXCHAT_H
 #define PLUGIN_HEXCHAT_H
 
-gchar *get_config_filename();
+gchar *get_config_filename(void);
 int irc_nick_cmp (const char *, const char *);
 
 #endif
index 1f9c7cc9f4711c5ee5e877ad3cb724d30ab02ada..b97761f5e419df1e1c7e6778e58d83d15d3acbb8 100644 (file)
@@ -273,7 +273,7 @@ typedef struct {
 
 static PyObject *Util_BuildList(char *word[]);
 static PyObject *Util_BuildEOLList(char *word[]);
-static void Util_Autoload();
+static void Util_Autoload(void);
 static char *Util_Expand(char *filename);
 
 static int Callback_Server(char *word[], char *word_eol[], hexchat_event_attrs *attrs, void *userdata);
@@ -283,7 +283,7 @@ static int Callback_Print(char *word[], void *userdata);
 static int Callback_Timer(void *userdata);
 static int Callback_ThreadTimer(void *userdata);
 
-static PyObject *XChatOut_New();
+static PyObject *XChatOut_New(void);
 static PyObject *XChatOut_write(PyObject *self, PyObject *args);
 static void XChatOut_dealloc(PyObject *self);
 
@@ -300,7 +300,7 @@ static PyObject *Context_FromContext(hexchat_context *context);
 static PyObject *Context_FromServerAndChannel(char *server, char *channel);
 
 static PyObject *Plugin_New(char *filename, PyObject *xcoobj);
-static PyObject *Plugin_GetCurrent();
+static PyObject *Plugin_GetCurrent(void);
 static PluginObject *Plugin_ByString(char *str);
 static Hook *Plugin_AddHook(int type, PyObject *plugin, PyObject *callback,
                            PyObject *userdata, char *name, void *data);
@@ -336,11 +336,11 @@ static PyObject *Module_hexchat_pluginpref_list(PyObject *self, PyObject *args);
 static void IInterp_Exec(char *command);
 static int IInterp_Cmd(char *word[], char *word_eol[], void *userdata);
 
-static void Command_PyList();
+static void Command_PyList(void);
 static void Command_PyLoad(char *filename);
 static void Command_PyUnload(char *name);
 static void Command_PyReload(char *name);
-static void Command_PyAbout();
+static void Command_PyAbout(void);
 static int Command_Py(char *word[], char *word_eol[], void *userdata);
 
 /* ===================================================================== */
@@ -2518,7 +2518,7 @@ IInterp_Cmd(char *word[], char *word_eol[], void *userdata)
 /* Python command handling */
 
 static void
-Command_PyList()
+Command_PyList(void)
 {
        GSList *list;
        list = plugin_list;
@@ -2585,7 +2585,7 @@ Command_PyReload(char *name)
 }
 
 static void
-Command_PyAbout()
+Command_PyAbout(void)
 {
        hexchat_print(ph, about);
 }
@@ -2777,7 +2777,7 @@ hexchat_plugin_init(hexchat_plugin *plugin_handle,
 }
 
 int
-hexchat_plugin_deinit()
+hexchat_plugin_deinit(void)
 {
        GSList *list;
 
index a7ed0988674cffab900d9284f03153b81b625ddd..6c5b117e00e47cf33c1e50747c189eeb0856200d 100644 (file)
@@ -83,7 +83,7 @@ static gboolean dcc_send_data (GIOChannel *, GIOCondition, struct DCC *);
 static gboolean dcc_read (GIOChannel *, GIOCondition, struct DCC *);
 static gboolean dcc_read_ack (GIOChannel *source, GIOCondition condition, struct DCC *dcc);
 
-static int new_id()
+static int new_id(void)
 {
        static int id = 0;
        if (id == 0)
index a3bd2afae4b706609156fc4a4d1b75bf0727cef7..209abb009e02509270bf4424eafc5f796004ecbe 100644 (file)
@@ -179,6 +179,6 @@ typedef enum
 void fe_tray_set_icon (feicon icon);
 void fe_tray_set_tooltip (const char *text);
 void fe_open_chan_list (server *serv, char *filter, int do_refresh);
-const char *fe_get_default_font ();
+const char *fe_get_default_font (void);
 
 #endif
index 5efc2600330608f87d917a78aed410b53fb77b34..6aee9f6d21fc9f84a93b1ed793677646b8371a66 100644 (file)
@@ -23,6 +23,6 @@
 int identd_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name,
                                char **plugin_desc, char **plugin_version, char *arg);
 
-int identd_plugin_deinit ();
+int identd_plugin_deinit (void);
 
 #endif
index a397c878782763b54f132374165f22fa83598403..6d362ffba74b7463a7318bf14ebb361e61c4a80a 100644 (file)
@@ -427,7 +427,7 @@ plugin_auto_load_cb (char *filename)
 }
 
 static char *
-plugin_get_libdir ()
+plugin_get_libdir (void)
 {
        const char *libdir;
 
index c2db925424f42a1d1bbde1717a0e823c1f37cc61..2f20d17118d4e72523c0f16c49ca1c5ce701bc55 100644 (file)
@@ -1478,7 +1478,7 @@ static char * const pevt_discon_help[] = {
 #include "textevents.h"
 
 static void
-pevent_load_defaults ()
+pevent_load_defaults (void)
 {
        int i;
 
@@ -1495,7 +1495,7 @@ pevent_load_defaults ()
 }
 
 void
-pevent_make_pntevts ()
+pevent_make_pntevts (void)
 {
        int i, m;
        char out[1024];
@@ -1637,7 +1637,7 @@ pevent_load (char *filename)
 }
 
 static void
-pevent_check_all_loaded ()
+pevent_check_all_loaded (void)
 {
        int i;
 
index 28fc0c0da2a2892f054256d09efe194d2c50cbb9..485b7ce8790b67e7ccf8ece0ae9ea52f6df07003 100644 (file)
@@ -69,7 +69,7 @@ extern const gchar* arbitrary_encoding_fallback_string;
 void sound_play (const char *file, gboolean quiet);
 void sound_play_event (int i);
 void sound_beep (session *);
-void sound_load ();
-void sound_save ();
+void sound_load (void);
+void sound_save (void);
 
 #endif
index af0e149a08674f66f611322f41b86c1e330112c6..fe8f3e6cb7332e30335cfc5e26d163f6416d1965 100644 (file)
@@ -94,8 +94,8 @@ struct gcomp_data
        int elen;
 };
 
-static int key_load_kbs ();
-static int key_save_kbs ();
+static int key_load_kbs (void);
+static int key_save_kbs (void);
 static int key_action_handle_command (GtkWidget * wid, GdkEventKey * evt,
                                                                                                  char *d1, char *d2,
                                                                                                  struct session *sess);
index a30b8cd156979cf671037dab782b3b1fea5fe702..08d837ecab55e7d6dc51b09175e771aa2581535d 100644 (file)
@@ -306,7 +306,7 @@ ignore_new_entry_clicked (GtkWidget * wid, struct session *sess)
 }
 
 static void
-close_ignore_gui_callback ()
+close_ignore_gui_callback (void)
 {
        ignore_save ();
        ignorewin = 0;
index 902af92ef832fc523f8c9b0790316ac3577efb81..046e6afef10c884c54af9ec917d7712272881374 100644 (file)
@@ -375,7 +375,7 @@ menu_quick_sub (char *name, GtkWidget *menu, GtkWidget **sub_item_ret, int flags
 }
 
 static GtkWidget *
-menu_quick_endsub ()
+menu_quick_endsub (void)
 {
        /* Just delete the first element in the linked list pointed to by first */
        if (submenu_list)
@@ -1259,7 +1259,7 @@ menu_quit (GtkWidget * wid, gpointer none)
 }
 
 static void
-menu_search ()
+menu_search (void)
 {
        mg_search_toggle (current_sess);
 }
index 077a7c63a82fd4519d01f5a8a54b44073f4253a5..ef70b03253e77edcde27512f11ee7291478352f3 100644 (file)
@@ -80,7 +80,7 @@ static int tray_restore_timer = 0;
 
 
 void tray_apply_setup (void);
-static gboolean tray_menu_try_restore ();
+static gboolean tray_menu_try_restore (void);
 static void tray_cleanup (void);
 static void tray_init (void);
 
@@ -391,7 +391,7 @@ tray_menu_notify_cb (GObject *tray, GParamSpec *pspec, gpointer user_data)
 }
 
 static gboolean
-tray_menu_try_restore ()
+tray_menu_try_restore (void)
 {
        tray_cleanup();
        tray_init();
index f57c7f4188e09dd9bfb86e9b8c1bbee568f0707e..45bc132c293b0f0c51c2a48e818d364dc5a10138 100644 (file)
@@ -155,7 +155,7 @@ spell_accumulator(GSignalInvocationHint *hint, GValue *return_accu, const GValue
 }
 
 static void
-initialize_enchant ()
+initialize_enchant (void)
 {
        GModule *enchant;
        gpointer funcptr;