diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-07-24 15:14:44 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-07-24 15:14:44 +0200 |
commit | 5563924363096d5652a58a386dcd47b0b9e255f4 (patch) | |
tree | 3865dce39b9037dde8931679f4e696bd4849a555 /src/plugins/scripts/perl | |
parent | 5139fdcf2a3bb720184deecd121adae561bf4407 (diff) | |
download | weechat-5563924363096d5652a58a386dcd47b0b9e255f4.zip |
Fix compilation on OpenBSD: rename variables stdout/stderr (patch #6874 from zepard)
Diffstat (limited to 'src/plugins/scripts/perl')
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl-api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c index cfe30e4b5..ec150241b 100644 --- a/src/plugins/scripts/perl/weechat-perl-api.c +++ b/src/plugins/scripts/perl/weechat-perl-api.c @@ -2886,7 +2886,7 @@ static XS (XS_weechat_api_hook_fd) int weechat_perl_api_hook_process_cb (void *data, const char *command, int return_code, - const char *stdout, const char *stderr) + const char *out, const char *err) { struct t_script_callback *script_callback; char *perl_argv[6], str_rc[32], empty_arg[1] = { '\0' }; @@ -2901,8 +2901,8 @@ weechat_perl_api_hook_process_cb (void *data, perl_argv[0] = (script_callback->data) ? script_callback->data : empty_arg; perl_argv[1] = (command) ? (char *)command : empty_arg; perl_argv[2] = str_rc; - perl_argv[3] = (stdout) ? (char *)stdout : empty_arg; - perl_argv[4] = (stderr) ? (char *)stderr : empty_arg; + perl_argv[3] = (out) ? (char *)out : empty_arg; + perl_argv[4] = (err) ? (char *)err : empty_arg; perl_argv[5] = NULL; rc = (int *) weechat_perl_exec (script_callback->script, |