1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

Fix function prototypes for list of arguments

At the moment, building WeeChat triggers several thousand -Wstrict-prototypes
diagnostics.  This is due to its source code using an empty argument list for
functions and function pointers that take no arguments, instead of explicitly
declaring that they take no arguments by using a void list.

This commit replaces all empty argument lists with a void list.

Note that Ruby's headers also suffer the same problem, which WeeChat can't
do anything to fix.  Thus, building WeeChat with the Ruby plugin enabled
will still issue approximately 30 such diagnostics.
This commit is contained in:
Aaron Jones
2025-03-09 14:41:48 +00:00
committed by Sébastien Helleu
parent 20b2bdedc2
commit f5038bccbc
320 changed files with 909 additions and 909 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ alias_command_cb (const void *pointer, void *data,
*/
void
alias_command_init ()
alias_command_init (void)
{
struct t_hook *ptr_hook;
+1 -1
View File
@@ -22,6 +22,6 @@
#define ALIAS_COMMAND_KEEP_SPACES weechat_hook_set (ptr_hook, "keep_spaces_right", "1")
extern void alias_command_init ();
extern void alias_command_init (void);
#endif /* WEECHAT_PLUGIN_ALIAS_COMMAND_H */
+1 -1
View File
@@ -115,7 +115,7 @@ alias_completion_alias_value_cb (const void *pointer, void *data,
*/
void
alias_completion_init ()
alias_completion_init (void)
{
weechat_hook_completion ("alias", N_("list of aliases"),
&alias_completion_alias_cb, NULL, NULL);
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_ALIAS_COMPLETION_H
#define WEECHAT_PLUGIN_ALIAS_COMPLETION_H
extern void alias_completion_init ();
extern void alias_completion_init (void);
#endif /* WEECHAT_PLUGIN_ALIAS_COMPLETION_H */
+3 -3
View File
@@ -427,7 +427,7 @@ alias_config_update_cb (const void *pointer, void *data,
*/
int
alias_config_init ()
alias_config_init (void)
{
alias_config_file = weechat_config_new (ALIAS_CONFIG_PRIO_NAME,
&alias_config_reload, NULL, NULL);
@@ -470,7 +470,7 @@ alias_config_init ()
*/
int
alias_config_read ()
alias_config_read (void)
{
return weechat_config_read (alias_config_file);
}
@@ -480,7 +480,7 @@ alias_config_read ()
*/
int
alias_config_write ()
alias_config_write (void)
{
return weechat_config_write (alias_config_file);
}
+3 -3
View File
@@ -35,8 +35,8 @@ extern void alias_config_cmd_new_option (const char *name,
const char *command);
extern void alias_config_completion_new_option (const char *name,
const char *completion);
extern int alias_config_init ();
extern int alias_config_read ();
extern int alias_config_write ();
extern int alias_config_init (void);
extern int alias_config_read (void);
extern int alias_config_write (void);
#endif /* WEECHAT_PLUGIN_ALIAS_CONFIG_H */
+1 -1
View File
@@ -139,7 +139,7 @@ alias_info_infolist_alias_default_cb (const void *pointer, void *data,
*/
void
alias_info_init ()
alias_info_init (void)
{
weechat_hook_infolist (
"alias", N_("list of aliases"),
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_ALIAS_INFO_H
#define WEECHAT_PLUGIN_ALIAS_INFO_H
extern void alias_info_init ();
extern void alias_info_init (void);
#endif /* WEECHAT_PLUGIN_ALIAS_INFO_H */
+1 -1
View File
@@ -606,7 +606,7 @@ alias_free (struct t_alias *alias)
*/
void
alias_free_all ()
alias_free_all (void)
{
while (alias_list)
{
+1 -1
View File
@@ -48,7 +48,7 @@ extern struct t_alias *alias_new (const char *name, const char *command,
const char *completion);
extern int alias_rename (struct t_alias *alias, const char *new_name);
extern void alias_free (struct t_alias *alias);
extern void alias_free_all ();
extern void alias_free_all (void);
extern int alias_add_to_infolist (struct t_infolist *infolist,
struct t_alias *alias);
+2 -2
View File
@@ -699,7 +699,7 @@ end:
*/
int
buflist_bar_item_init ()
buflist_bar_item_init (void)
{
int i;
@@ -758,7 +758,7 @@ buflist_bar_item_init ()
*/
void
buflist_bar_item_end ()
buflist_bar_item_end (void)
{
int i;
+2 -2
View File
@@ -33,7 +33,7 @@ extern const char *buflist_bar_item_get_name (int index);
extern int buflist_bar_item_get_index (const char *item_name);
extern int buflist_bar_item_get_index_with_pointer (struct t_gui_bar_item *item);
extern void buflist_bar_item_update (int index, int force);
extern int buflist_bar_item_init ();
extern void buflist_bar_item_end ();
extern int buflist_bar_item_init (void);
extern void buflist_bar_item_end (void);
#endif /* WEECHAT_PLUGIN_BUFLIST_BAR_ITEM_H */
+1 -1
View File
@@ -99,7 +99,7 @@ buflist_command_buflist (const void *pointer, void *data,
*/
void
buflist_command_init ()
buflist_command_init (void)
{
weechat_hook_command (
"buflist",
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_BUFLIST_COMMAND_H
#define WEECHAT_PLUGIN_BUFLIST_COMMAND_H
extern void buflist_command_init ();
extern void buflist_command_init (void);
#endif /* WEECHAT_PLUGIN_BUFLIST_COMMAND_H */
+1 -1
View File
@@ -88,7 +88,7 @@ buflist_completion_items_used_cb (const void *pointer, void *data,
*/
void
buflist_completion_init ()
buflist_completion_init (void)
{
weechat_hook_completion ("buflist_items",
N_("buflist bar items"),
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_BUFLIST_COMPLETION_H
#define WEECHAT_PLUGIN_BUFLIST_COMPLETION_H
extern void buflist_completion_init ();
extern void buflist_completion_init (void);
#endif /* WEECHAT_PLUGIN_BUFLIST_COMPLETION_H */
+6 -6
View File
@@ -105,7 +105,7 @@ buflist_config_reload (const void *pointer, void *data,
*/
void
buflist_config_free_signals_refresh ()
buflist_config_free_signals_refresh (void)
{
int i;
@@ -169,7 +169,7 @@ buflist_config_signal_buffer_cb (const void *pointer, void *data,
*/
void
buflist_config_hook_signals_refresh ()
buflist_config_hook_signals_refresh (void)
{
char **all_signals, **signals;
const char *ptr_signals_refresh;
@@ -469,7 +469,7 @@ buflist_config_change_format (const void *pointer, void *data,
*/
int
buflist_config_init ()
buflist_config_init (void)
{
buflist_config_file = weechat_config_new (
BUFLIST_CONFIG_PRIO_NAME,
@@ -804,7 +804,7 @@ buflist_config_init ()
*/
int
buflist_config_read ()
buflist_config_read (void)
{
int rc;
@@ -825,7 +825,7 @@ buflist_config_read ()
*/
int
buflist_config_write ()
buflist_config_write (void)
{
return weechat_config_write (buflist_config_file);
}
@@ -835,7 +835,7 @@ buflist_config_write ()
*/
void
buflist_config_free ()
buflist_config_free (void)
{
int i;
+4 -4
View File
@@ -69,9 +69,9 @@ extern char *buflist_config_format_hotlist_eval;
extern void buflist_config_change_sort (const void *pointer, void *data,
struct t_config_option *option);
extern int buflist_config_init ();
extern int buflist_config_read ();
extern int buflist_config_write ();
extern void buflist_config_free ();
extern int buflist_config_init (void);
extern int buflist_config_read (void);
extern int buflist_config_write (void);
extern void buflist_config_free (void);
#endif /* WEECHAT_PLUGIN_BUFLIST_CONFIG_H */
+1 -1
View File
@@ -114,7 +114,7 @@ buflist_info_infolist_buflist_cb (const void *pointer, void *data,
*/
void
buflist_info_init ()
buflist_info_init (void)
{
weechat_hook_infolist (
"buflist", N_("list of buffers in a buflist bar item"),
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_BUFLIST_INFO_H
#define WEECHAT_PLUGIN_BUFLIST_INFO_H
extern void buflist_info_init ();
extern void buflist_info_init (void);
#endif /* WEECHAT_PLUGIN_BUFLIST_INFO_H */
+2 -2
View File
@@ -437,7 +437,7 @@ buflist_hsignal_cb (const void *pointer, void *data, const char *signal,
*/
int
buflist_mouse_init ()
buflist_mouse_init (void)
{
int i;
@@ -458,6 +458,6 @@ buflist_mouse_init ()
*/
void
buflist_mouse_end ()
buflist_mouse_end (void)
{
}
+2 -2
View File
@@ -22,7 +22,7 @@
#define BUFLIST_MOUSE_HSIGNAL "buflist_mouse"
extern int buflist_mouse_init ();
extern void buflist_mouse_end ();
extern int buflist_mouse_init (void);
extern void buflist_mouse_end (void);
#endif /* WEECHAT_PLUGIN_BUFLIST_MOUSE_H */
+1 -1
View File
@@ -56,7 +56,7 @@ struct t_hdata *buflist_hdata_bar_window = NULL;
*/
void
buflist_add_bar ()
buflist_add_bar (void)
{
weechat_bar_new (
BUFLIST_BAR_NAME,
+1 -1
View File
@@ -37,7 +37,7 @@ extern struct t_hdata *buflist_hdata_bar;
extern struct t_hdata *buflist_hdata_bar_item;
extern struct t_hdata *buflist_hdata_bar_window;
extern void buflist_add_bar ();
extern void buflist_add_bar (void);
extern void buflist_buffer_get_irc_pointers (struct t_gui_buffer *buffer,
void **irc_server,
void **irc_channel);
+4 -4
View File
@@ -193,7 +193,7 @@ charset_config_create_option (const void *pointer, void *data,
*/
int
charset_config_init ()
charset_config_init (void)
{
struct t_config_section *ptr_section;
@@ -281,7 +281,7 @@ charset_config_init ()
*/
int
charset_config_read ()
charset_config_read (void)
{
return weechat_config_read (charset_config_file);
}
@@ -291,7 +291,7 @@ charset_config_read ()
*/
int
charset_config_write ()
charset_config_write (void)
{
return weechat_config_write (charset_config_file);
}
@@ -465,7 +465,7 @@ charset_set (struct t_config_section *section, const char *type,
*/
void
charset_display_charsets ()
charset_display_charsets (void)
{
weechat_printf (NULL,
_("%s: terminal: %s, internal: %s"),
+1 -1
View File
@@ -111,7 +111,7 @@ exec_buffer_close_cb (const void *pointer, void *data,
*/
void
exec_buffer_set_callbacks ()
exec_buffer_set_callbacks (void)
{
struct t_infolist *ptr_infolist;
struct t_gui_buffer *ptr_buffer;
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef WEECHAT_PLUGIN_EXEC_BUFFER_H
#define WEECHAT_PLUGIN_EXEC_BUFFER_H
extern void exec_buffer_set_callbacks ();
extern void exec_buffer_set_callbacks (void);
extern struct t_gui_buffer *exec_buffer_new (const char *name,
int free_content,
int clear_buffer,
+2 -2
View File
@@ -36,7 +36,7 @@
*/
void
exec_command_list ()
exec_command_list (void)
{
struct t_exec_cmd *ptr_exec_cmd;
char str_elapsed[32], str_time1[256], str_time2[256];
@@ -815,7 +815,7 @@ exec_command_exec (const void *pointer, void *data,
*/
void
exec_command_init ()
exec_command_init (void)
{
weechat_hook_command (
"exec",
+1 -1
View File
@@ -47,6 +47,6 @@ struct t_exec_cmd_options
extern int exec_command_run (struct t_gui_buffer *buffer,
int argc, char **argv, char **argv_eol,
int start_arg);
extern void exec_command_init ();
extern void exec_command_init (void);
#endif /* WEECHAT_PLUGIN_EXEC_COMMAND_H */
+1 -1
View File
@@ -68,7 +68,7 @@ exec_completion_commands_ids_cb (const void *pointer, void *data,
*/
void
exec_completion_init ()
exec_completion_init (void)
{
weechat_hook_completion ("exec_commands_ids",
N_("ids (numbers and names) of executed commands"),
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_EXEC_COMPLETION_H
#define WEECHAT_PLUGIN_EXEC_COMPLETION_H
extern void exec_completion_init ();
extern void exec_completion_init (void);
#endif /* WEECHAT_PLUGIN_EXEC_COMPLETION_H */
+4 -4
View File
@@ -99,7 +99,7 @@ exec_config_reload_cb (const void *pointer, void *data,
*/
int
exec_config_init ()
exec_config_init (void)
{
exec_config_file = weechat_config_new (EXEC_CONFIG_PRIO_NAME,
&exec_config_reload_cb, NULL, NULL);
@@ -181,7 +181,7 @@ exec_config_init ()
*/
int
exec_config_read ()
exec_config_read (void)
{
return weechat_config_read (exec_config_file);
}
@@ -191,7 +191,7 @@ exec_config_read ()
*/
int
exec_config_write ()
exec_config_write (void)
{
return weechat_config_write (exec_config_file);
}
@@ -201,7 +201,7 @@ exec_config_write ()
*/
void
exec_config_free ()
exec_config_free (void)
{
weechat_config_free (exec_config_file);
exec_config_file = NULL;
+4 -4
View File
@@ -35,9 +35,9 @@ extern struct t_config_option *exec_config_color_flag_running;
extern char **exec_config_cmd_options;
extern int exec_config_cmd_num_options;
extern int exec_config_init ();
extern int exec_config_read ();
extern int exec_config_write ();
extern void exec_config_free ();
extern int exec_config_init (void);
extern int exec_config_read (void);
extern int exec_config_write (void);
extern void exec_config_free (void);
#endif /* WEECHAT_PLUGIN_EXEC_CONFIG_H */
+3 -3
View File
@@ -115,7 +115,7 @@ exec_search_by_id (const char *id)
*/
struct t_exec_cmd *
exec_add ()
exec_add (void)
{
struct t_exec_cmd *new_exec_cmd;
int i;
@@ -642,7 +642,7 @@ exec_free (struct t_exec_cmd *exec_cmd)
*/
void
exec_free_all ()
exec_free_all (void)
{
while (exec_cmds)
{
@@ -655,7 +655,7 @@ exec_free_all ()
*/
void
exec_print_log ()
exec_print_log (void)
{
struct t_exec_cmd *ptr_exec_cmd;
+2 -2
View File
@@ -83,11 +83,11 @@ extern int exec_cmds_count;
extern int exec_search_color (const char *color);
extern struct t_exec_cmd *exec_search_by_id (const char *id);
extern struct t_exec_cmd *exec_add ();
extern struct t_exec_cmd *exec_add (void);
extern int exec_process_cb (const void *pointer, void *data,
const char *command, int return_code,
const char *out, const char *err);
extern void exec_free (struct t_exec_cmd *exec_cmd);
extern void exec_free_all ();
extern void exec_free_all (void);
#endif /* WEECHAT_PLUGIN_EXEC_H */
+1 -1
View File
@@ -90,7 +90,7 @@ fifo_command_fifo (const void *pointer, void *data,
*/
void
fifo_command_init ()
fifo_command_init (void)
{
weechat_hook_command (
"fifo",
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_FIFO_COMMAND_H
#define WEECHAT_PLUGIN_FIFO_COMMAND_H
extern void fifo_command_init ();
extern void fifo_command_init (void);
#endif /* WEECHAT_PLUGIN_FIFO_COMMAND_H */
+4 -4
View File
@@ -87,7 +87,7 @@ fifo_config_change_file_path (const void *pointer, void *data,
*/
int
fifo_config_init ()
fifo_config_init (void)
{
fifo_config_file = weechat_config_new (FIFO_CONFIG_PRIO_NAME,
NULL, NULL, NULL);
@@ -134,7 +134,7 @@ fifo_config_init ()
*/
int
fifo_config_read ()
fifo_config_read (void)
{
return weechat_config_read (fifo_config_file);
}
@@ -144,7 +144,7 @@ fifo_config_read ()
*/
int
fifo_config_write ()
fifo_config_write (void)
{
return weechat_config_write (fifo_config_file);
}
@@ -154,7 +154,7 @@ fifo_config_write ()
*/
void
fifo_config_free ()
fifo_config_free (void)
{
weechat_config_free (fifo_config_file);
fifo_config_file = NULL;
+4 -4
View File
@@ -26,9 +26,9 @@
extern struct t_config_option *fifo_config_file_enabled;
extern struct t_config_option *fifo_config_file_path;
extern int fifo_config_init ();
extern int fifo_config_read ();
extern int fifo_config_write ();
extern void fifo_config_free ();
extern int fifo_config_init (void);
extern int fifo_config_read (void);
extern int fifo_config_write (void);
extern void fifo_config_free (void);
#endif /* WEECHAT_PLUGIN_FIFO_CONFIG_H */
+1 -1
View File
@@ -49,7 +49,7 @@ fifo_info_info_fifo_filename_cb (const void *pointer, void *data,
*/
void
fifo_info_init ()
fifo_info_init (void)
{
weechat_hook_info ("fifo_filename", N_("name of FIFO pipe"), NULL,
&fifo_info_info_fifo_filename_cb, NULL, NULL);
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_FIFO_INFO_H
#define WEECHAT_PLUGIN_FIFO_INFO_H
extern void fifo_info_init ();
extern void fifo_info_init (void);
#endif /* WEECHAT_PLUGIN_FIFO_INFO_H */
+2 -2
View File
@@ -62,7 +62,7 @@ int fifo_fd_cb (const void *pointer, void *data, int fd);
*/
void
fifo_create ()
fifo_create (void)
{
struct stat st;
struct t_hashtable *options;
@@ -146,7 +146,7 @@ fifo_create ()
*/
void
fifo_remove ()
fifo_remove (void)
{
int fifo_found;
+2 -2
View File
@@ -29,7 +29,7 @@ extern int fifo_quiet;
extern int fifo_fd;
extern char *fifo_filename;
extern void fifo_create ();
extern void fifo_remove ();
extern void fifo_create (void);
extern void fifo_remove (void);
#endif /* WEECHAT_PLUGIN_FIFO_H */
+3 -3
View File
@@ -39,7 +39,7 @@ struct t_gui_bar_item *fset_bar_item_fset = NULL;
*/
void
fset_bar_item_update ()
fset_bar_item_update (void)
{
weechat_bar_item_update (FSET_BAR_ITEM_NAME);
}
@@ -231,7 +231,7 @@ fset_bar_item_fset_cb (const void *pointer, void *data,
*/
int
fset_bar_item_init ()
fset_bar_item_init (void)
{
fset_bar_item_fset = weechat_bar_item_new (
FSET_BAR_ITEM_NAME,
@@ -245,7 +245,7 @@ fset_bar_item_init ()
*/
void
fset_bar_item_end ()
fset_bar_item_end (void)
{
weechat_bar_item_remove (fset_bar_item_fset);
fset_bar_item_fset = NULL;
+3 -3
View File
@@ -22,8 +22,8 @@
#define FSET_BAR_ITEM_NAME "fset"
extern void fset_bar_item_update ();
extern int fset_bar_item_init ();
extern void fset_bar_item_end ();
extern void fset_bar_item_update (void);
extern int fset_bar_item_init (void);
extern void fset_bar_item_end (void);
#endif /* WEECHAT_PLUGIN_FSET_BAR_ITEM_H */
+7 -7
View File
@@ -42,7 +42,7 @@ struct t_hashtable *fset_buffer_hashtable_extra_vars = NULL;
*/
void
fset_buffer_set_title ()
fset_buffer_set_title (void)
{
int num_options;
char str_marked[32], str_title[8192];
@@ -1237,7 +1237,7 @@ fset_buffer_get_window_info (struct t_gui_window *window,
*/
void
fset_buffer_check_line_outside_window ()
fset_buffer_check_line_outside_window (void)
{
struct t_gui_window *window;
int start_line_y, chat_height, format_number, lines_per_option;
@@ -1477,7 +1477,7 @@ fset_buffer_close_cb (const void *pointer, void *data,
*/
void
fset_buffer_set_callbacks ()
fset_buffer_set_callbacks (void)
{
struct t_gui_buffer *ptr_buffer;
@@ -1553,7 +1553,7 @@ fset_buffer_set_keys (struct t_hashtable *hashtable)
*/
void
fset_buffer_set_localvar_filter ()
fset_buffer_set_localvar_filter (void)
{
if (!fset_buffer)
return;
@@ -1567,7 +1567,7 @@ fset_buffer_set_localvar_filter ()
*/
void
fset_buffer_open ()
fset_buffer_open (void)
{
struct t_hashtable *buffer_props;
@@ -1612,7 +1612,7 @@ fset_buffer_open ()
*/
int
fset_buffer_init ()
fset_buffer_init (void)
{
fset_buffer_set_callbacks ();
@@ -1646,7 +1646,7 @@ fset_buffer_init ()
*/
void
fset_buffer_end ()
fset_buffer_end (void)
{
if (fset_buffer)
{
+6 -6
View File
@@ -27,20 +27,20 @@ struct t_fset_option;
extern struct t_gui_buffer *fset_buffer;
extern int fset_buffer_selected_line;
extern void fset_buffer_set_title ();
extern void fset_buffer_set_title (void);
extern int fset_buffer_display_option (struct t_fset_option *fset_option);
extern void fset_buffer_refresh (int clear);
extern void fset_buffer_set_current_line (int line);
extern void fset_buffer_check_line_outside_window ();
extern void fset_buffer_check_line_outside_window (void);
extern int fset_buffer_window_scrolled_cb (const void *pointer,
void *data,
const char *signal,
const char *type_data,
void *signal_data);
extern void fset_buffer_set_keys (struct t_hashtable *hashtable);
extern void fset_buffer_set_localvar_filter ();
extern void fset_buffer_open ();
extern int fset_buffer_init ();
extern void fset_buffer_end ();
extern void fset_buffer_set_localvar_filter (void);
extern void fset_buffer_open (void);
extern int fset_buffer_init (void);
extern void fset_buffer_end (void);
#endif /* WEECHAT_PLUGIN_FSET_BUFFER_H */
+1 -1
View File
@@ -638,7 +638,7 @@ fset_command_run_key_cb (const void *pointer, void *data,
*/
void
fset_command_init ()
fset_command_init (void)
{
weechat_hook_command (
"fset",
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_FSET_COMMAND_H
#define WEECHAT_PLUGIN_FSET_COMMAND_H
extern void fset_command_init ();
extern void fset_command_init (void);
#endif /* WEECHAT_PLUGIN_FSET_COMMAND_H */
+1 -1
View File
@@ -115,7 +115,7 @@ fset_completion_option_cb (const void *pointer, void *data,
*/
void
fset_completion_init ()
fset_completion_init (void)
{
weechat_hook_completion ("fset_options",
N_("configuration files, sections, options and "
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_FSET_COMPLETION_H
#define WEECHAT_PLUGIN_FSET_COMPLETION_H
extern void fset_completion_init ();
extern void fset_completion_init (void);
#endif /* WEECHAT_PLUGIN_FSET_COMPLETION_H */
+4 -4
View File
@@ -365,7 +365,7 @@ fset_config_change_title_color_cb (const void *pointer, void *data,
*/
int
fset_config_init ()
fset_config_init (void)
{
fset_config_file = weechat_config_new (FSET_CONFIG_PRIO_NAME,
&fset_config_reload, NULL, NULL);
@@ -1148,7 +1148,7 @@ fset_config_init ()
*/
int
fset_config_read ()
fset_config_read (void)
{
int rc;
@@ -1169,7 +1169,7 @@ fset_config_read ()
*/
int
fset_config_write ()
fset_config_write (void)
{
return weechat_config_write (fset_config_file);
}
@@ -1179,7 +1179,7 @@ fset_config_write ()
*/
void
fset_config_free ()
fset_config_free (void)
{
weechat_config_free (fset_config_file);
fset_config_file = NULL;
+4 -4
View File
@@ -88,9 +88,9 @@ extern char **fset_config_sort_fields;
extern int fset_config_sort_fields_count;
extern int fset_config_format_option_num_lines[2];
extern int fset_config_init ();
extern int fset_config_read ();
extern int fset_config_write ();
extern void fset_config_free ();
extern int fset_config_init (void);
extern int fset_config_read (void);
extern int fset_config_write (void);
extern void fset_config_free (void);
#endif /* WEECHAT_PLUGIN_FSET_CONFIG_H */
+1 -1
View File
@@ -94,7 +94,7 @@ fset_info_infolist_fset_option_cb (const void *pointer, void *data,
*/
void
fset_info_init ()
fset_info_init (void)
{
/* infolist hooks */
weechat_hook_infolist (
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_FSET_INFO_H
#define WEECHAT_PLUGIN_FSET_INFO_H
extern void fset_info_init ();
extern void fset_info_init (void);
#endif /* WEECHAT_PLUGIN_FSET_INFO_H */
+2 -2
View File
@@ -311,7 +311,7 @@ fset_mouse_hsignal_cb (const void *pointer, void *data, const char *signal,
*/
int
fset_mouse_init ()
fset_mouse_init (void)
{
struct t_hashtable *keys;
@@ -356,6 +356,6 @@ fset_mouse_init ()
*/
void
fset_mouse_end ()
fset_mouse_end (void)
{
}
+2 -2
View File
@@ -22,7 +22,7 @@
#define FSET_MOUSE_HSIGNAL "fset_mouse"
extern int fset_mouse_init ();
extern void fset_mouse_end ();
extern int fset_mouse_init (void);
extern void fset_mouse_end (void);
#endif /* WEECHAT_PLUGIN_FSET_MOUSE_H */
+8 -8
View File
@@ -743,7 +743,7 @@ fset_option_init_max_length (struct t_fset_option_max_length *max_length)
*/
void
fset_option_set_max_length_fields_all ()
fset_option_set_max_length_fields_all (void)
{
int i, num_options;
struct t_fset_option *ptr_fset_option;
@@ -929,7 +929,7 @@ fset_option_free_cb (void *data, struct t_arraylist *arraylist, void *pointer)
*/
struct t_arraylist *
fset_option_get_arraylist_options ()
fset_option_get_arraylist_options (void)
{
return weechat_arraylist_new (100, 1, 0,
&fset_option_compare_options_cb, NULL,
@@ -941,7 +941,7 @@ fset_option_get_arraylist_options ()
*/
struct t_fset_option_max_length *
fset_option_get_max_length ()
fset_option_get_max_length (void)
{
struct t_fset_option_max_length *max_length;
@@ -957,7 +957,7 @@ fset_option_get_max_length ()
*/
void
fset_option_get_options ()
fset_option_get_options (void)
{
struct t_fset_option *new_fset_option, *ptr_fset_option;
struct t_config_file *ptr_config;
@@ -1278,7 +1278,7 @@ fset_option_mark_options_matching_filter (const char *filter, int mark)
*/
void
fset_option_unmark_all ()
fset_option_unmark_all (void)
{
int num_options, marked, set_title, i;
struct t_fset_option *ptr_fset_option;
@@ -1772,7 +1772,7 @@ fset_option_add_to_infolist (struct t_infolist *infolist,
*/
void
fset_option_print_log ()
fset_option_print_log (void)
{
struct t_fset_option *ptr_fset_option;
int num_options, i;
@@ -1815,7 +1815,7 @@ fset_option_print_log ()
*/
int
fset_option_init ()
fset_option_init (void)
{
fset_options = fset_option_get_arraylist_options ();
if (!fset_options)
@@ -1891,7 +1891,7 @@ fset_option_init ()
*/
void
fset_option_end ()
fset_option_end (void)
{
if (fset_options)
{
+8 -8
View File
@@ -95,11 +95,11 @@ extern int fset_option_valid (struct t_fset_option *option);
extern struct t_fset_option *fset_option_search_by_name (const char *name,
int *line);
extern int fset_option_value_is_changed (struct t_fset_option *option);
extern void fset_option_set_max_length_fields_all ();
extern void fset_option_set_max_length_fields_all (void);
extern void fset_option_free (struct t_fset_option *fset_option);
extern struct t_arraylist *fset_option_get_arraylist_options ();
extern struct t_fset_option_max_length *fset_option_get_max_length ();
extern void fset_option_get_options ();
extern struct t_arraylist *fset_option_get_arraylist_options (void);
extern struct t_fset_option_max_length *fset_option_get_max_length (void);
extern void fset_option_get_options (void);
extern void fset_option_set_filter (const char *filter);
extern void fset_option_filter_options (const char *filter);
extern void fset_option_toggle_value (struct t_fset_option *fset_option,
@@ -119,7 +119,7 @@ extern void fset_option_toggle_mark (struct t_fset_option *fset_option,
struct t_config_option *option);
extern void fset_option_mark_options_matching_filter (const char *filter,
int mark);
extern void fset_option_unmark_all ();
extern void fset_option_unmark_all (void);
extern int fset_option_export (const char *filename, int with_help);
extern int fset_option_import (const char *filename);
extern int fset_option_config_cb (const void *pointer,
@@ -131,8 +131,8 @@ extern struct t_hdata *fset_option_hdata_option_cb (const void *pointer,
const char *hdata_name);
extern int fset_option_add_to_infolist (struct t_infolist *infolist,
struct t_fset_option *option);
extern void fset_option_print_log ();
extern int fset_option_init ();
extern void fset_option_end ();
extern void fset_option_print_log (void);
extern int fset_option_init (void);
extern void fset_option_end (void);
#endif /* WEECHAT_PLUGIN_FSET_OPTION_H */
+1 -1
View File
@@ -86,7 +86,7 @@ fset_debug_dump_cb (const void *pointer, void *data,
*/
void
fset_add_bar ()
fset_add_bar (void)
{
weechat_bar_new (
FSET_BAR_NAME, "off", "0", "window",
+1 -1
View File
@@ -33,6 +33,6 @@ extern struct t_hdata *fset_hdata_config_section;
extern struct t_hdata *fset_hdata_config_option;
extern struct t_hdata *fset_hdata_fset_option;
extern void fset_add_bar ();
extern void fset_add_bar (void);
#endif /* WEECHAT_PLUGIN_FSET_H */
+6 -6
View File
@@ -621,7 +621,7 @@ weechat_guile_api_mkdir_parents (SCM directory, SCM mode)
}
SCM
weechat_guile_api_list_new ()
weechat_guile_api_list_new (void)
{
const char *result;
SCM return_value;
@@ -3541,7 +3541,7 @@ weechat_guile_api_unhook (SCM hook)
}
SCM
weechat_guile_api_unhook_all ()
weechat_guile_api_unhook_all (void)
{
API_INIT_FUNC(1, "unhook_all", API_RETURN_ERROR);
@@ -3707,7 +3707,7 @@ weechat_guile_api_buffer_search (SCM plugin, SCM name)
}
SCM
weechat_guile_api_buffer_search_main ()
weechat_guile_api_buffer_search_main (void)
{
const char *result;
SCM return_value;
@@ -3720,7 +3720,7 @@ weechat_guile_api_buffer_search_main ()
}
SCM
weechat_guile_api_current_buffer ()
weechat_guile_api_current_buffer (void)
{
const char *result;
SCM return_value;
@@ -3892,7 +3892,7 @@ weechat_guile_api_line_search_by_id (SCM buffer, SCM id)
}
SCM
weechat_guile_api_current_window ()
weechat_guile_api_current_window (void)
{
const char *result;
SCM return_value;
@@ -4652,7 +4652,7 @@ weechat_guile_api_info_get_hashtable (SCM info_name, SCM hash)
}
SCM
weechat_guile_api_infolist_new ()
weechat_guile_api_infolist_new (void)
{
const char *result;
SCM return_value;
+2 -2
View File
@@ -116,7 +116,7 @@ char *guile_action_autoload_list = NULL;
*/
void
weechat_guile_output_flush ()
weechat_guile_output_flush (void)
{
const char *ptr_command;
char *temp_buffer, *command;
@@ -684,7 +684,7 @@ weechat_guile_unload_name (const char *name)
*/
void
weechat_guile_unload_all ()
weechat_guile_unload_all (void)
{
while (guile_scripts)
{
+2 -2
View File
@@ -704,7 +704,7 @@ irc_bar_item_buffer_switch (const void *pointer, void *data,
*/
void
irc_bar_item_update_channel ()
irc_bar_item_update_channel (void)
{
weechat_bar_item_update ("buffer_name");
weechat_bar_item_update ("buffer_short_name");
@@ -716,7 +716,7 @@ irc_bar_item_update_channel ()
*/
void
irc_bar_item_init ()
irc_bar_item_init (void)
{
weechat_bar_item_new ("buffer_plugin",
&irc_bar_item_buffer_plugin, NULL, NULL);
+2 -2
View File
@@ -20,7 +20,7 @@
#ifndef WEECHAT_PLUGIN_IRC_BAR_ITEM_H
#define WEECHAT_PLUGIN_IRC_BAR_ITEM_H
extern void irc_bar_item_update_channel ();
extern void irc_bar_item_init ();
extern void irc_bar_item_update_channel (void);
extern void irc_bar_item_init (void);
#endif /* WEECHAT_PLUGIN_IRC_BAR_ITEM_H */
+1 -1
View File
@@ -305,7 +305,7 @@ irc_buffer_nickcmp_cb (const void *pointer, void *data,
*/
struct t_gui_buffer *
irc_buffer_search_server_lowest_number ()
irc_buffer_search_server_lowest_number (void)
{
struct t_gui_buffer *ptr_buffer;
struct t_irc_server *ptr_server;
+1 -1
View File
@@ -52,7 +52,7 @@ extern int irc_buffer_close_cb (const void *pointer, void *data,
extern int irc_buffer_nickcmp_cb (const void *pointer, void *data,
struct t_gui_buffer *buffer,
const char *nick1, const char *nick2);
extern struct t_gui_buffer *irc_buffer_search_server_lowest_number ();
extern struct t_gui_buffer *irc_buffer_search_server_lowest_number (void);
extern struct t_gui_buffer *irc_buffer_search_private_lowest_number (struct t_irc_server *server);
extern void irc_buffer_move_near_server (struct t_irc_server *server,
int list_buffer, int channel_type,
+2 -2
View File
@@ -1080,7 +1080,7 @@ irc_color_weechat_add_to_infolist (struct t_infolist *infolist)
*/
void
irc_color_init ()
irc_color_init (void)
{
irc_color_index_string_decoded = 0;
memset (irc_color_string_decoded, 0, sizeof (irc_color_string_decoded));
@@ -1091,7 +1091,7 @@ irc_color_init ()
*/
void
irc_color_end ()
irc_color_end (void)
{
int i;
+2 -2
View File
@@ -127,7 +127,7 @@ extern char *irc_color_modifier_cb (const void *pointer, void *data,
const char *string);
extern char *irc_color_for_tags (const char *color);
extern int irc_color_weechat_add_to_infolist (struct t_infolist *infolist);
extern void irc_color_init ();
extern void irc_color_end ();
extern void irc_color_init (void);
extern void irc_color_end (void);
#endif /* WEECHAT_PLUGIN_IRC_COLOR_H */
+1 -1
View File
@@ -7036,7 +7036,7 @@ IRC_COMMAND_CALLBACK(whowas)
*/
void
irc_command_init ()
irc_command_init (void)
{
struct t_hook *ptr_hook;
+1 -1
View File
@@ -85,6 +85,6 @@ extern void irc_command_part_channel (struct t_irc_server *server,
const char *part_message);
extern void irc_command_quit_server (struct t_irc_server *server,
const char *arguments);
extern void irc_command_init ();
extern void irc_command_init (void);
#endif /* WEECHAT_PLUGIN_IRC_COMMAND_H */
+1 -1
View File
@@ -956,7 +956,7 @@ irc_completion_raw_filters_cb (const void *pointer, void *data,
*/
void
irc_completion_init ()
irc_completion_init (void)
{
weechat_hook_completion ("irc_server",
N_("current IRC server"),
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_IRC_COMPLETION_H
#define WEECHAT_PLUGIN_IRC_COMPLETION_H
extern void irc_completion_init ();
extern void irc_completion_init (void);
#endif /* WEECHAT_PLUGIN_IRC_COMPLETION_H */
+4 -4
View File
@@ -228,7 +228,7 @@ irc_config_get_server_from_option_name (const char *name)
*/
void
irc_config_compute_nick_colors ()
irc_config_compute_nick_colors (void)
{
struct t_irc_server *ptr_server;
struct t_irc_channel *ptr_channel;
@@ -3174,7 +3174,7 @@ irc_config_update_cb (const void *pointer, void *data,
*/
int
irc_config_init ()
irc_config_init (void)
{
int i;
@@ -4249,7 +4249,7 @@ irc_config_init ()
*/
int
irc_config_read ()
irc_config_read (void)
{
int rc;
@@ -4289,7 +4289,7 @@ irc_config_write (int write_temp_servers)
*/
void
irc_config_free ()
irc_config_free (void)
{
weechat_config_free (irc_config_file);
irc_config_file = NULL;
+3 -3
View File
@@ -244,9 +244,9 @@ struct t_config_option *irc_config_server_new_option (struct t_config_file *conf
struct t_config_option *option),
const void *callback_change_pointer,
void *callback_change_data);
extern int irc_config_init ();
extern int irc_config_read ();
extern int irc_config_init (void);
extern int irc_config_read (void);
extern int irc_config_write (int write_temp_servers);
extern void irc_config_free ();
extern void irc_config_free (void);
#endif /* WEECHAT_PLUGIN_IRC_CONFIG_H */
+1 -1
View File
@@ -68,7 +68,7 @@ irc_debug_signal_debug_dump_cb (const void *pointer, void *data,
*/
void
irc_debug_init ()
irc_debug_init (void)
{
weechat_hook_signal ("debug_dump",
&irc_debug_signal_debug_dump_cb, NULL, NULL);
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_IRC_DEBUG_H
#define WEECHAT_PLUGIN_IRC_DEBUG_H
extern void irc_debug_init ();
extern void irc_debug_init (void);
#endif /* WEECHAT_PLUGIN_IRC_DEBUG_H */
+2 -2
View File
@@ -339,7 +339,7 @@ irc_ignore_free (struct t_irc_ignore *ignore)
*/
void
irc_ignore_free_all ()
irc_ignore_free_all (void)
{
while (irc_ignore_list)
{
@@ -414,7 +414,7 @@ irc_ignore_add_to_infolist (struct t_infolist *infolist,
*/
void
irc_ignore_print_log ()
irc_ignore_print_log (void)
{
struct t_irc_ignore *ptr_ignore;
+2 -2
View File
@@ -59,12 +59,12 @@ extern int irc_ignore_check (struct t_irc_server *server,
const char *channel, const char *nick,
const char *host);
extern void irc_ignore_free (struct t_irc_ignore *ignore);
extern void irc_ignore_free_all ();
extern void irc_ignore_free_all (void);
extern struct t_hdata *irc_ignore_hdata_ignore_cb (const void *pointer,
void *data,
const char *hdata_name);
extern int irc_ignore_add_to_infolist (struct t_infolist *infolist,
struct t_irc_ignore *ignore);
extern void irc_ignore_print_log ();
extern void irc_ignore_print_log (void);
#endif /* WEECHAT_PLUGIN_IRC_IGNORE_H */
+1 -1
View File
@@ -1335,7 +1335,7 @@ irc_info_infolist_irc_color_weechat_cb (const void *pointer, void *data,
*/
void
irc_info_init ()
irc_info_init (void)
{
/* info hooks */
weechat_hook_info (
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_IRC_INFO_H
#define WEECHAT_PLUGIN_IRC_INFO_H
extern void irc_info_init ();
extern void irc_info_init (void);
#endif /* WEECHAT_PLUGIN_IRC_INFO_H */
+3 -3
View File
@@ -1167,7 +1167,7 @@ irc_list_reset (struct t_irc_server *server)
*/
struct t_irc_list *
irc_list_alloc ()
irc_list_alloc (void)
{
struct t_irc_list *list;
@@ -1348,7 +1348,7 @@ irc_list_mouse_hsignal_cb (const void *pointer, void *data, const char *signal,
*/
void
irc_list_init ()
irc_list_init (void)
{
struct t_hashtable *keys;
@@ -1409,7 +1409,7 @@ irc_list_init ()
*/
void
irc_list_end ()
irc_list_end (void)
{
if (irc_list_filter_hashtable_pointers)
{
+3 -3
View File
@@ -69,7 +69,7 @@ extern int irc_list_hsignal_redirect_list_cb (const void *pointer,
struct t_hashtable *hashtable);
extern int irc_list_export (struct t_irc_server *server, const char *filename);
extern void irc_list_reset (struct t_irc_server *server);
extern struct t_irc_list *irc_list_alloc ();
extern struct t_irc_list *irc_list_alloc (void);
extern void irc_list_free_data (struct t_irc_server *server);
extern void irc_list_free (struct t_irc_server *server);
extern struct t_hdata *irc_list_hdata_list_channel_cb (const void *pointer,
@@ -77,7 +77,7 @@ extern struct t_hdata *irc_list_hdata_list_channel_cb (const void *pointer,
const char *hdata_name);
extern struct t_hdata *irc_list_hdata_list_cb (const void *pointer, void *data,
const char *hdata_name);
extern void irc_list_init ();
extern void irc_list_end ();
extern void irc_list_init (void);
extern void irc_list_end (void);
#endif /* WEECHAT_PLUGIN_IRC_LIST_H */
+2 -2
View File
@@ -465,7 +465,7 @@ irc_nick_nicklist_set (struct t_irc_channel *channel,
*/
void
irc_nick_nicklist_set_prefix_color_all ()
irc_nick_nicklist_set_prefix_color_all (void)
{
struct t_irc_server *ptr_server;
struct t_irc_channel *ptr_channel;
@@ -493,7 +493,7 @@ irc_nick_nicklist_set_prefix_color_all ()
*/
void
irc_nick_nicklist_set_color_all ()
irc_nick_nicklist_set_color_all (void)
{
struct t_irc_server *ptr_server;
struct t_irc_channel *ptr_channel;
+2 -2
View File
@@ -59,8 +59,8 @@ extern int irc_nick_has_prefix_mode (struct t_irc_server *server,
char prefix_mode);
extern const char *irc_nick_get_prefix_color_name (struct t_irc_server *server,
char prefix);
extern void irc_nick_nicklist_set_prefix_color_all ();
extern void irc_nick_nicklist_set_color_all ();
extern void irc_nick_nicklist_set_prefix_color_all (void);
extern void irc_nick_nicklist_set_color_all (void);
extern struct t_irc_nick *irc_nick_new_in_channel (struct t_irc_server *server,
struct t_irc_channel *channel,
const char *nickname,
+5 -5
View File
@@ -409,7 +409,7 @@ irc_notify_new_for_server (struct t_irc_server *server)
*/
void
irc_notify_new_for_all_servers ()
irc_notify_new_for_all_servers (void)
{
struct t_irc_server *ptr_server;
@@ -1231,7 +1231,7 @@ irc_notify_print_log (struct t_irc_server *server)
*/
void
irc_notify_hook_timer_ison ()
irc_notify_hook_timer_ison (void)
{
weechat_unhook (irc_notify_timer_ison);
irc_notify_timer_ison = weechat_hook_timer (
@@ -1244,7 +1244,7 @@ irc_notify_hook_timer_ison ()
*/
void
irc_notify_hook_timer_whois ()
irc_notify_hook_timer_whois (void)
{
weechat_unhook (irc_notify_timer_whois);
irc_notify_timer_whois = weechat_hook_timer (
@@ -1257,7 +1257,7 @@ irc_notify_hook_timer_whois ()
*/
void
irc_notify_init ()
irc_notify_init (void)
{
irc_notify_hook_timer_ison ();
irc_notify_hook_timer_whois ();
@@ -1272,7 +1272,7 @@ irc_notify_init ()
*/
void
irc_notify_end ()
irc_notify_end (void)
{
if (irc_notify_timer_ison)
{
+5 -5
View File
@@ -52,7 +52,7 @@ extern struct t_irc_notify *irc_notify_new (struct t_irc_server *server,
int check_away);
extern void irc_notify_check_now (struct t_irc_notify *notify);
extern void irc_notify_new_for_server (struct t_irc_server *server);
extern void irc_notify_new_for_all_servers ();
extern void irc_notify_new_for_all_servers (void);
extern void irc_notify_free (struct t_irc_server *server,
struct t_irc_notify *notify, int remove_monitor);
extern void irc_notify_display_is_on (struct t_irc_server *server,
@@ -75,9 +75,9 @@ extern struct t_hdata *irc_notify_hdata_notify_cb (const void *pointer,
extern int irc_notify_add_to_infolist (struct t_infolist *infolist,
struct t_irc_notify *notify);
extern void irc_notify_print_log (struct t_irc_server *server);
extern void irc_notify_hook_timer_ison ();
extern void irc_notify_hook_timer_whois ();
extern void irc_notify_init ();
extern void irc_notify_end ();
extern void irc_notify_hook_timer_ison (void);
extern void irc_notify_hook_timer_whois (void);
extern void irc_notify_init (void);
extern void irc_notify_end (void);
#endif /* WEECHAT_PLUGIN_IRC_NOTIFY_H */
+6 -6
View File
@@ -315,7 +315,7 @@ irc_raw_message_print (struct t_irc_raw_message *raw_message)
*/
void
irc_raw_set_localvar_filter ()
irc_raw_set_localvar_filter (void)
{
if (!irc_raw_buffer)
return;
@@ -329,7 +329,7 @@ irc_raw_set_localvar_filter ()
*/
void
irc_raw_set_title ()
irc_raw_set_title (void)
{
char str_title[1024];
@@ -490,7 +490,7 @@ irc_raw_message_free (struct t_irc_raw_message *raw_message)
*/
void
irc_raw_message_free_all ()
irc_raw_message_free_all (void)
{
while (irc_raw_messages)
{
@@ -503,7 +503,7 @@ irc_raw_message_free_all ()
*/
void
irc_raw_message_remove_old ()
irc_raw_message_remove_old (void)
{
int max_messages;
@@ -643,7 +643,7 @@ irc_raw_add_to_infolist (struct t_infolist *infolist,
*/
void
irc_raw_init ()
irc_raw_init (void)
{
irc_raw_filter_hashtable_options = weechat_hashtable_new (
8,
@@ -662,7 +662,7 @@ irc_raw_init ()
*/
void
irc_raw_end ()
irc_raw_end (void)
{
irc_raw_message_free_all ();
+2 -2
View File
@@ -68,7 +68,7 @@ extern void irc_raw_print (struct t_irc_server *server, int flags,
const char *message);
extern int irc_raw_add_to_infolist (struct t_infolist *infolist,
struct t_irc_raw_message *raw_message);
extern void irc_raw_init ();
extern void irc_raw_end ();
extern void irc_raw_init (void);
extern void irc_raw_end (void);
#endif /* WEECHAT_PLUGIN_IRC_RAW_H */
+4 -4
View File
@@ -377,7 +377,7 @@ irc_redirect_pattern_free (struct t_irc_redirect_pattern *redirect_pattern)
*/
void
irc_redirect_pattern_free_all ()
irc_redirect_pattern_free_all (void)
{
while (irc_redirect_patterns)
{
@@ -1177,7 +1177,7 @@ irc_redirect_add_to_infolist (struct t_infolist *infolist,
*/
void
irc_redirect_pattern_print_log ()
irc_redirect_pattern_print_log (void)
{
struct t_irc_redirect_pattern *ptr_redirect_pattern;
@@ -1391,7 +1391,7 @@ irc_redirect_command_hsignal_cb (const void *pointer, void *data,
*/
void
irc_redirect_init ()
irc_redirect_init (void)
{
int i;
@@ -1411,7 +1411,7 @@ irc_redirect_init ()
*/
void
irc_redirect_end ()
irc_redirect_end (void)
{
irc_redirect_pattern_free_all ();
}
+3 -3
View File
@@ -121,7 +121,7 @@ extern int irc_redirect_pattern_add_to_infolist (struct t_infolist *infolist,
struct t_irc_redirect_pattern *redirect_pattern);
extern int irc_redirect_add_to_infolist (struct t_infolist *infolist,
struct t_irc_redirect *redirect);
extern void irc_redirect_pattern_print_log ();
extern void irc_redirect_pattern_print_log (void);
extern void irc_redirect_print_log (struct t_irc_server *server);
extern int irc_redirect_pattern_hsignal_cb (const void *pointer, void *data,
const char *signal,
@@ -129,7 +129,7 @@ extern int irc_redirect_pattern_hsignal_cb (const void *pointer, void *data,
extern int irc_redirect_command_hsignal_cb (const void *pointer, void *data,
const char *signal,
struct t_hashtable *hashtable);
extern void irc_redirect_init ();
extern void irc_redirect_end ();
extern void irc_redirect_init (void);
extern void irc_redirect_end (void);
#endif /* WEECHAT_PLUGIN_IRC_REDIRECT_H */
+5 -5
View File
@@ -2422,7 +2422,7 @@ irc_server_free (struct t_irc_server *server)
*/
void
irc_server_free_all ()
irc_server_free_all (void)
{
/* for each server in memory, remove it */
while (irc_servers)
@@ -3480,7 +3480,7 @@ irc_server_msgq_add_buffer (struct t_irc_server *server, const char *buffer)
*/
void
irc_server_msgq_flush ()
irc_server_msgq_flush (void)
{
struct t_irc_message *next;
char *ptr_data, *new_msg, *new_msg2, *ptr_msg, *ptr_msg2, *pos;
@@ -4849,7 +4849,7 @@ irc_server_create_buffer (struct t_irc_server *server)
*/
char *
irc_server_fingerprint_str_sizes ()
irc_server_fingerprint_str_sizes (void)
{
char str_sizes[1024], str_one_size[128];
int i;
@@ -5819,7 +5819,7 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address,
*/
void
irc_server_disconnect_all ()
irc_server_disconnect_all (void)
{
struct t_irc_server *ptr_server;
@@ -6948,7 +6948,7 @@ irc_server_add_to_infolist (struct t_infolist *infolist,
*/
void
irc_server_print_log ()
irc_server_print_log (void)
{
struct t_irc_server *ptr_server;
struct t_irc_channel *ptr_channel;
+5 -5
View File
@@ -400,7 +400,7 @@ extern struct t_irc_server *irc_server_alloc (const char *name);
extern struct t_irc_server *irc_server_alloc_with_url (const char *irc_url);
extern void irc_server_apply_command_line_options (struct t_irc_server *server,
int argc, char **argv);
extern void irc_server_free_all ();
extern void irc_server_free_all (void);
extern struct t_irc_server *irc_server_copy (struct t_irc_server *server,
const char *new_name);
extern int irc_server_rename (struct t_irc_server *server, const char *new_name);
@@ -418,10 +418,10 @@ extern struct t_arraylist *irc_server_sendf (struct t_irc_server *server,
const char *format, ...);
extern void irc_server_msgq_add_buffer (struct t_irc_server *server,
const char *buffer);
extern void irc_server_msgq_flush ();
extern void irc_server_msgq_flush (void);
extern void irc_server_set_buffer_title (struct t_irc_server *server);
extern struct t_gui_buffer *irc_server_create_buffer (struct t_irc_server *server);
char *irc_server_fingerprint_str_sizes ();
char *irc_server_fingerprint_str_sizes (void);
extern int irc_server_connect (struct t_irc_server *server);
extern void irc_server_auto_connect (int auto_connect);
extern void irc_server_autojoin_channels (struct t_irc_server *server);
@@ -442,7 +442,7 @@ extern void irc_server_switch_address (struct t_irc_server *server,
int connection);
extern void irc_server_disconnect (struct t_irc_server *server,
int switch_address, int reconnect);
extern void irc_server_disconnect_all ();
extern void irc_server_disconnect_all (void);
extern void irc_server_execute_command (struct t_irc_server *server);
extern void irc_server_free_sasl_data (struct t_irc_server *server);
extern void irc_server_free (struct t_irc_server *server);
@@ -465,6 +465,6 @@ extern struct t_hdata *irc_server_hdata_server_cb (const void *pointer,
extern int irc_server_add_to_infolist (struct t_infolist *infolist,
struct t_irc_server *server,
int force_disconnected_state);
extern void irc_server_print_log ();
extern void irc_server_print_log (void);
#endif /* WEECHAT_PLUGIN_IRC_SERVER_H */
+3 -3
View File
@@ -293,7 +293,7 @@ irc_upgrade_save (int force_disconnected_state)
*/
void
irc_upgrade_set_buffer_callbacks ()
irc_upgrade_set_buffer_callbacks (void)
{
struct t_infolist *infolist;
struct t_gui_buffer *ptr_buffer;
@@ -990,7 +990,7 @@ irc_upgrade_read_cb (const void *pointer, void *data,
*/
void
irc_upgrade_set_buffer_properties ()
irc_upgrade_set_buffer_properties (void)
{
struct t_irc_server *ptr_server;
struct t_irc_channel *ptr_channel;
@@ -1021,7 +1021,7 @@ irc_upgrade_set_buffer_properties ()
*/
int
irc_upgrade_load ()
irc_upgrade_load (void)
{
int rc;
struct t_upgrade_file *upgrade_file;
+1 -1
View File
@@ -40,6 +40,6 @@ enum t_irc_upgrade_type
extern int irc_upgrading;
extern int irc_upgrade_save (int force_disconnected_state);
extern int irc_upgrade_load ();
extern int irc_upgrade_load (void);
#endif /* WEECHAT_PLUGIN_IRC_UPGRADE_H */
+2 -2
View File
@@ -767,7 +767,7 @@ logger_buffer_start_all (int write_info_line)
*/
void
logger_buffer_flush ()
logger_buffer_flush (void)
{
struct t_logger_buffer *ptr_logger_buffer;
@@ -800,7 +800,7 @@ logger_buffer_flush ()
*/
void
logger_buffer_adjust_log_filenames ()
logger_buffer_adjust_log_filenames (void)
{
struct t_infolist *ptr_infolist;
struct t_logger_buffer *ptr_logger_buffer;
+2 -2
View File
@@ -73,8 +73,8 @@ extern void logger_buffer_stop (struct t_logger_buffer *logger_buffer,
extern void logger_buffer_stop_all (int write_info_line);
extern void logger_buffer_start (struct t_gui_buffer *buffer, int write_info_line);
extern void logger_buffer_start_all (int write_info_line);
extern void logger_buffer_flush ();
extern void logger_buffer_adjust_log_filenames ();
extern void logger_buffer_flush (void);
extern void logger_buffer_adjust_log_filenames (void);
extern void logger_buffer_free (struct t_logger_buffer *logger_buffer);
extern int logger_buffer_add_to_infolist (struct t_infolist *infolist,
struct t_logger_buffer *logger_buffer);
+2 -2
View File
@@ -33,7 +33,7 @@
*/
void
logger_list ()
logger_list (void)
{
struct t_infolist *ptr_infolist;
struct t_logger_buffer *ptr_logger_buffer;
@@ -161,7 +161,7 @@ logger_command_cb (const void *pointer, void *data,
*/
void
logger_command_init ()
logger_command_init (void)
{
weechat_hook_command (
"logger",
+1 -1
View File
@@ -20,6 +20,6 @@
#ifndef WEECHAT_PLUGIN_LOGGER_COMMAND_H
#define WEECHAT_PLUGIN_LOGGER_COMMAND_H
extern void logger_command_init ();
extern void logger_command_init (void);
#endif /* WEECHAT_PLUGIN_LOGGER_COMMAND_H */
+4 -4
View File
@@ -489,7 +489,7 @@ logger_config_get_mask (const char *name)
*/
int
logger_config_init ()
logger_config_init (void)
{
logger_config_file = weechat_config_new (LOGGER_CONFIG_PRIO_NAME,
NULL, NULL, NULL);
@@ -748,7 +748,7 @@ logger_config_init ()
*/
int
logger_config_read ()
logger_config_read (void)
{
int rc;
@@ -766,7 +766,7 @@ logger_config_read ()
*/
int
logger_config_write ()
logger_config_write (void)
{
return weechat_config_write (logger_config_file);
}
@@ -776,7 +776,7 @@ logger_config_write ()
*/
void
logger_config_free ()
logger_config_free (void)
{
weechat_config_free (logger_config_file);
logger_config_file = NULL;

Some files were not shown because too many files have changed in this diff Show More