1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

core: fix compiler warning on freopen (ignore file returned)

This commit is contained in:
Sebastien Helleu
2013-08-01 16:29:12 +02:00
parent 8bff3225fd
commit f9d57a3099
+3 -1
View File
@@ -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]));