xfer: fix compilation warnings

v2.8-utf8proc
Sebastien Helleu 2013-05-22 20:57:14 +02:00
parent e7c947df3e
commit 9c54e33ee1
1 changed files with 6 additions and 2 deletions

View File

@ -190,6 +190,7 @@ void
xfer_network_send_file_fork (struct t_xfer *xfer)
{
pid_t pid;
int rc;
if (!xfer_network_create_pipe (xfer))
return;
@ -208,7 +209,8 @@ xfer_network_send_file_fork (struct t_xfer *xfer)
return;
/* child process */
case 0:
setuid (getuid ());
rc = setuid (getuid ());
(void) rc;
close (xfer->child_read);
switch (xfer->protocol)
{
@ -258,6 +260,7 @@ void
xfer_network_recv_file_fork (struct t_xfer *xfer)
{
pid_t pid;
int rc;
if (!xfer_network_create_pipe (xfer))
return;
@ -282,7 +285,8 @@ xfer_network_recv_file_fork (struct t_xfer *xfer)
return;
/* child process */
case 0:
setuid (getuid ());
rc = setuid (getuid ());
(void) rc;
close (xfer->child_read);
switch (xfer->protocol)
{