summaryrefslogtreecommitdiff
path: root/src/plugins/aspell/aspell.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-12-17 17:07:08 +0100
committerSebastien Helleu <flashcode@flashtux.org>2007-12-17 17:07:08 +0100
commitdba084f3d6a65ff8299c79b3867e28b57e50f1be (patch)
tree4b930f11254cc22148d7bd1b75eab83edcb1f063 /src/plugins/aspell/aspell.c
parente62ec5204c7061a83860fa6c6c8204414a2dd057 (diff)
downloadweechat-dba084f3d6a65ff8299c79b3867e28b57e50f1be.zip
New backlog option in logger plugin, added variable names in .h files, replaced "void *" pointers by structures
Diffstat (limited to 'src/plugins/aspell/aspell.c')
-rw-r--r--src/plugins/aspell/aspell.c18
1 files changed, 9 insertions, 9 deletions
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; i<s; i++)
{
n = 10 + strlen (servers_list[i]);
- option_s = (char *) malloc (n * sizeof (char));
+ option_s = (char *)malloc (n * sizeof (char));
snprintf (option_s, n, "channels_%s", servers_list[i]);
channels = weechat_aspell_plugin->get_plugin_config (weechat_aspell_plugin, option_s);
@@ -911,7 +911,7 @@ weechat_aspell_config_load(void)
for (j=0; j<c; j++)
{
n = 7 + strlen (servers_list[i]) + strlen (channels_list[j]);
- option_l = (char *) malloc (n * sizeof (char));
+ option_l = (char *)malloc (n * sizeof (char));
snprintf (option_l, n, "lang_%s_%s", servers_list[i], channels_list[j]);
lang = weechat_aspell_plugin->get_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);