diff --git a/src/osdep/osdep.c b/src/osdep/osdep.c index 37eafbce..23d04cf8 100644 --- a/src/osdep/osdep.c +++ b/src/osdep/osdep.c @@ -362,7 +362,7 @@ exe_no_stdin(char *path) { #if defined(F_GETFD) && defined(FD_CLOEXEC) int flags; - flags = fcntl(STDIN_FILENO, F_GETFD, &flags); + flags = fcntl(STDIN_FILENO, F_GETFD); fcntl(STDIN_FILENO, F_SETFD, flags | FD_CLOEXEC); ret = exe(path); fcntl(STDIN_FILENO, F_SETFD, flags); diff --git a/src/terminal/terminal.c b/src/terminal/terminal.c index 468141d8..f5944536 100644 --- a/src/terminal/terminal.c +++ b/src/terminal/terminal.c @@ -226,8 +226,6 @@ void exec_thread(char *path, int p) { int plen = strlen(path + 1) + 2; - pid_t pid; - int flags; #if defined(HAVE_SETPGID) && !defined(CONFIG_OS_BEOS) && !defined(HAVE_BEGINTHREAD) if (path[0] == TERM_EXEC_NEWWIN) setpgid(0, 0);