summaryrefslogtreecommitdiff
path: root/src/core/wee-hook.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-08-01 16:29:12 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-08-01 16:29:12 +0200
commitf9d57a30993e4c287f44fbcb7c74e55915df7f2e (patch)
treee274584c8372a4769540757290d7c047efaaf914 /src/core/wee-hook.c
parent8bff3225fdec87da5573b51e03ddc26a4ab460ae (diff)
downloadweechat-f9d57a30993e4c287f44fbcb7c74e55915df7f2e.zip
core: fix compiler warning on freopen (ignore file returned)
Diffstat (limited to 'src/core/wee-hook.c')
-rw-r--r--src/core/wee-hook.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index ff2702948..f899f02d5 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -1434,9 +1434,11 @@ hook_process_child (struct t_hook *hook_process)
char **exec_args, *arg0, str_arg[64];
const char *ptr_url, *ptr_arg;
int rc, i, num_args;
+ FILE *f;
/* use "/dev/null" for stdin stream */
- freopen ("/dev/null", "r", stdin);
+ f = freopen ("/dev/null", "r", stdin);
+ (void) f;
/* redirect stdout/stderr to pipe (so that father process can read them) */
close (HOOK_PROCESS(hook_process, child_read[HOOK_PROCESS_STDOUT]));