diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-05-22 20:56:54 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-05-22 20:56:54 +0200 |
commit | e7c947df3e953361f2373b22756d0cf6c6b22407 (patch) | |
tree | 1729f0373ee0e659381a7f7a732bb7f25abb5554 /src/core | |
parent | 8f66e15baefff4d2e9ca3410b9e2ceb257ce80bd (diff) | |
download | weechat-e7c947df3e953361f2373b22756d0cf6c6b22407.zip |
core: fix compilation warnings
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-hook.c | 5 | ||||
-rw-r--r-- | src/core/wee-network.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index f40338d18..6390dc3d1 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -1716,7 +1716,7 @@ hook_process_timer_cb (void *arg_hook_process, int remaining_calls) void hook_process_run (struct t_hook *hook_process) { - int pipe_stdout[2], pipe_stderr[2], timeout, max_calls; + int pipe_stdout[2], pipe_stderr[2], timeout, max_calls, rc; long interval; pid_t pid; @@ -1763,7 +1763,8 @@ hook_process_run (struct t_hook *hook_process) return; /* child process */ case 0: - setuid (getuid ()); + rc = setuid (getuid ()); + (void) rc; hook_process_child (hook_process); /* never executed */ _exit (EXIT_SUCCESS); diff --git a/src/core/wee-network.c b/src/core/wee-network.c index b1dcf7731..b6583bfbc 100644 --- a/src/core/wee-network.c +++ b/src/core/wee-network.c @@ -1625,7 +1625,8 @@ network_connect_with_fork (struct t_hook *hook_connect) return; /* child process */ case 0: - setuid (getuid ()); + rc = setuid (getuid ()); + (void) rc; close (HOOK_CONNECT(hook_connect, child_read)); #ifndef HOOK_CONNECT_MAX_SOCKETS close (HOOK_CONNECT(hook_connect, child_recv)); |