From 5563924363096d5652a58a386dcd47b0b9e255f4 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 24 Jul 2009 15:14:44 +0200 Subject: Fix compilation on OpenBSD: rename variables stdout/stderr (patch #6874 from zepard) --- src/plugins/scripts/perl/weechat-perl-api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/scripts/perl') 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, -- cgit v1.2.3