1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 21:06:38 +02:00

core: fix compilation warning on ignored returned value for function dup()

This commit is contained in:
Sébastien Helleu
2018-03-11 10:34:19 +01:00
parent 805717e9ec
commit 985a55cf45
+4 -3
View File
@@ -44,7 +44,7 @@ void
daemonize ()
{
pid_t pid;
int fd, i;
int fd, i, new_fd;
printf (_("Running WeeChat in background..."));
printf (" ");
@@ -77,8 +77,9 @@ daemonize ()
close (i);
}
fd = open ("/dev/null", O_RDWR);
dup (fd);
dup (fd);
new_fd = dup (fd);
new_fd = dup (fd);
(void) new_fd;
}
/*