From e7c947df3e953361f2373b22756d0cf6c6b22407 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 22 May 2013 20:56:54 +0200 Subject: core: fix compilation warnings --- src/core/wee-hook.c | 5 +++-- src/core/wee-network.c | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core') 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)); -- cgit v1.2.3