diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 23:00:04 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 23:00:04 +0100 |
commit | 57323fa71effad75d78b36a45d5457b1bd782963 (patch) | |
tree | 50d7a5bacacebcdf59d5bf38dff84c83bf557d31 /doc/fr | |
parent | 14feea7ab84df3e367bc3732e8ba1470e1a3f5a7 (diff) | |
download | weechat-57323fa71effad75d78b36a45d5457b1bd782963.zip |
Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov)
Diffstat (limited to 'doc/fr')
-rw-r--r-- | doc/fr/plugin_api.fr.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/fr/plugin_api.fr.xml b/doc/fr/plugin_api.fr.xml index e1e0e74a9..1fdfc56af 100644 --- a/doc/fr/plugin_api.fr.xml +++ b/doc/fr/plugin_api.fr.xml @@ -1758,7 +1758,7 @@ char *adder (t_weechat_plugin *plugin, int argc, char **argv, char *modifier_args, void *modifier_pointer) { char *string; - string = (char *)malloc (strlen (argv[1]) + 16); + string = malloc (strlen (argv[1]) + 16); strcpy (string, argv[1]); strcat (string, "test"); return string; |