summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/tcl
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-07-24 15:14:44 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-07-24 15:14:44 +0200
commit5563924363096d5652a58a386dcd47b0b9e255f4 (patch)
tree3865dce39b9037dde8931679f4e696bd4849a555 /src/plugins/scripts/tcl
parent5139fdcf2a3bb720184deecd121adae561bf4407 (diff)
downloadweechat-5563924363096d5652a58a386dcd47b0b9e255f4.zip
Fix compilation on OpenBSD: rename variables stdout/stderr (patch #6874 from zepard)
Diffstat (limited to 'src/plugins/scripts/tcl')
-rw-r--r--src/plugins/scripts/tcl/weechat-tcl-api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl-api.c b/src/plugins/scripts/tcl/weechat-tcl-api.c
index 6ec6742c2..f7acb8ae0 100644
--- a/src/plugins/scripts/tcl/weechat-tcl-api.c
+++ b/src/plugins/scripts/tcl/weechat-tcl-api.c
@@ -3284,7 +3284,7 @@ weechat_tcl_api_hook_fd (ClientData clientData, Tcl_Interp *interp,
int
weechat_tcl_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 *tcl_argv[6], str_rc[32], empty_arg[1] = { '\0' };
@@ -3299,8 +3299,8 @@ weechat_tcl_api_hook_process_cb (void *data,
tcl_argv[0] = (script_callback->data) ? script_callback->data : empty_arg;
tcl_argv[1] = (command) ? (char *)command : empty_arg;
tcl_argv[2] = str_rc;
- tcl_argv[3] = (stdout) ? (char *)stdout : empty_arg;
- tcl_argv[4] = (stderr) ? (char *)stderr : empty_arg;
+ tcl_argv[3] = (out) ? (char *)out : empty_arg;
+ tcl_argv[4] = (err) ? (char *)err : empty_arg;
tcl_argv[5] = NULL;
rc = (int *) weechat_tcl_exec (script_callback->script,