1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

xfer: fix compilation warnings

This commit is contained in:
Sebastien Helleu
2013-05-22 20:57:14 +02:00
parent e7c947df3e
commit 9c54e33ee1
+6 -2
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)
{