diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-26 18:51:16 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-26 18:51:16 +0200 |
commit | d95aef21346b04c1fc17d52b96d0dfaa0cf3d43c (patch) | |
tree | 9b1ede10258e6a196ad6b699415ca09c42d68670 /src/plugins/scripts/perl/weechat-perl.c | |
parent | b3ac47bcf1bd096c1b9484bd8dbe19e6eaf015aa (diff) | |
download | weechat-d95aef21346b04c1fc17d52b96d0dfaa0cf3d43c.zip |
script plugins: use new macros to reduce code length
Diffstat (limited to 'src/plugins/scripts/perl/weechat-perl.c')
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c index 3ab70faa0..8d6b30195 100644 --- a/src/plugins/scripts/perl/weechat-perl.c +++ b/src/plugins/scripts/perl/weechat-perl.c @@ -555,7 +555,7 @@ weechat_perl_load_cb (void *data, const char *filename) void weechat_perl_unload (struct t_plugin_script *script) { - int *r; + int *rc; void *interpreter; if ((weechat_perl_plugin->debug >= 1) || !perl_quiet) @@ -573,12 +573,12 @@ weechat_perl_unload (struct t_plugin_script *script) if (script->shutdown_func && script->shutdown_func[0]) { - r = (int *) weechat_perl_exec (script, + rc = (int *)weechat_perl_exec (script, WEECHAT_SCRIPT_EXEC_INT, script->shutdown_func, NULL, NULL); - if (r) - free (r); + if (rc) + free (rc); } interpreter = script->interpreter; |