From dba084f3d6a65ff8299c79b3867e28b57e50f1be Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 17 Dec 2007 17:07:08 +0100 Subject: New backlog option in logger plugin, added variable names in .h files, replaced "void *" pointers by structures --- src/plugins/aspell/aspell.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/plugins/aspell/aspell.c') diff --git a/src/plugins/aspell/aspell.c b/src/plugins/aspell/aspell.c index 9e771423c..4c3774a8a 100644 --- a/src/plugins/aspell/aspell.c +++ b/src/plugins/aspell/aspell.c @@ -48,7 +48,7 @@ weechat_aspell_new_speller (void) { aspell_speller_t *s; - s = (aspell_speller_t *) malloc (sizeof (aspell_speller_t)); + s = (aspell_speller_t *)malloc (sizeof (aspell_speller_t)); if (!s) { weechat_aspell_plugin->print (weechat_aspell_plugin, NULL, NULL, @@ -203,7 +203,7 @@ weechat_aspell_new_config (void) { aspell_config_t *c; - c = (aspell_config_t *) malloc (sizeof (aspell_config_t)); + c = (aspell_config_t *)malloc (sizeof (aspell_config_t)); if (!c) { weechat_aspell_plugin->print (weechat_aspell_plugin, NULL, NULL, @@ -828,7 +828,7 @@ weechat_aspell_config_save (void) if (found == 0) { n = strlen (servers) + strlen (p->server) + 2; - servers = (char *) realloc (servers, n * sizeof (char)); + servers = (char *)realloc (servers, n * sizeof (char)); strcat (servers, " "); strcat (servers, p->server); weechat_aspell_plugin->set_plugin_config (weechat_aspell_plugin, "servers", servers); @@ -848,13 +848,13 @@ weechat_aspell_config_save (void) else { n = strlen (channels) + strlen (q->channel) + 2; - channels = (char *) realloc (channels, n * sizeof (char)); + channels = (char *)realloc (channels, n * sizeof (char)); strcat (channels, " "); strcat (channels, q->channel); } n = 7 + strlen (p->server) + strlen (q->channel); - option = (char *) malloc ( n * sizeof (char)); + option = (char *)malloc (n * sizeof (char)); snprintf (option, n, "lang_%s_%s", p->server, q->channel); weechat_aspell_plugin->set_plugin_config (weechat_aspell_plugin, option, q->speller->lang); free (option); @@ -864,7 +864,7 @@ weechat_aspell_config_save (void) if (channels) { n = 10 + strlen (p->server); - option = (char *) malloc ( n * sizeof (char)); + option = (char *)malloc (n * sizeof (char)); snprintf (option, n, "channels_%s", p->server); weechat_aspell_plugin->set_plugin_config (weechat_aspell_plugin, option, channels); free (option); @@ -899,7 +899,7 @@ weechat_aspell_config_load(void) for (i=0; iget_plugin_config (weechat_aspell_plugin, option_s); @@ -911,7 +911,7 @@ weechat_aspell_config_load(void) for (j=0; jget_plugin_config (weechat_aspell_plugin, option_l); @@ -1174,7 +1174,7 @@ weechat_aspell_clean_word (char *word, int *offset) return NULL; } - w = (char *) malloc ((len+1) * sizeof(char)); + w = (char *)malloc ((len+1) * sizeof(char)); if (w) { memcpy (w, buffer + *offset, len); -- cgit v1.2.3