summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hook.c5
-rw-r--r--src/core/wee-network.c3
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));