diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/headless/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/curses/headless/main.c b/src/gui/curses/headless/main.c index 871a4a30d..194150405 100644 --- a/src/gui/curses/headless/main.c +++ b/src/gui/curses/headless/main.c @@ -44,7 +44,7 @@ void daemonize () { pid_t pid; - int fd, i, new_fd; + int fd, i; printf (_("Running WeeChat in background...")); printf (" "); @@ -77,9 +77,8 @@ daemonize () close (i); } fd = open ("/dev/null", O_RDWR); - new_fd = dup (fd); - new_fd = dup (fd); - (void) new_fd; + (void) dup (fd); + (void) dup (fd); } /* |