From 99e3f219afcd281e85a188465a769d50bfdaf824 Mon Sep 17 00:00:00 2001 From: Emmanuel Bouthenot Date: Sun, 11 Jun 2006 11:20:18 +0000 Subject: make aspell plugin compile with gcc-2.95 --- src/plugins/aspell/weechat-aspell.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c index 9cba2b1e3..76a3a8c11 100644 --- a/src/plugins/aspell/weechat-aspell.c +++ b/src/plugins/aspell/weechat-aspell.c @@ -948,15 +948,15 @@ int speller_command (t_weechat_plugin *p, char *handler_args, void *handler_pointer) { + char helpcmd[32]; + char **args; + int c, r; + /* make gcc happy */ (void) p; (void) handler_args; (void) handler_pointer; - char helpcmd[32]; - char **args; - int c, r; - snprintf(helpcmd, sizeof(helpcmd), "/help %s", plugin_command); r = 0; @@ -1015,16 +1015,16 @@ int speller_command (t_weechat_plugin *p, int keyb_check (t_weechat_plugin *p, int argc, char **argv, char *handler_args, void *handler_pointer) { - /* make gcc happy */ - (void) p; - (void) handler_args; - (void) handler_pointer; - char *server, *channel; config_t *c; char *input, *ptr_input, *pos_space; int count; + /* make gcc happy */ + (void) p; + (void) handler_args; + (void) handler_pointer; + channel = plugin->get_info (plugin, "channel", NULL); server = plugin->get_info (plugin, "server", NULL); @@ -1141,12 +1141,12 @@ int weechat_plugin_init (t_weechat_plugin *p) */ void weechat_plugin_end (t_weechat_plugin *p) { - /* make gcc happy */ - (void) p; - speller_t *s, *t; config_t *c, *d; + /* make gcc happy */ + (void) p; + options_save (); config_save (); -- cgit v1.2.3