diff options
Diffstat (limited to 'src/shell_manager.cc')
| -rw-r--r-- | src/shell_manager.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc index d08c4dbd..7346f2c1 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -10,7 +10,6 @@ #include "face_registry.hh" #include "file.hh" #include "flags.hh" -#include "option.hh" #include "option_types.hh" #include "regex.hh" @@ -118,7 +117,7 @@ Shell spawn_shell(const char* shell, StringView cmdline, if (pid_t pid = vfork()) return {pid, std::move(stdin_pipe[1]), std::move(stdout_pipe[0]), std::move(stderr_pipe[0])}; - auto renamefd = [](int oldfd, int newfd) { + constexpr auto renamefd = [](int oldfd, int newfd) { if (oldfd == newfd) return; dup2(oldfd, newfd); |
