From 5bf1b0e5f500b6b99a866da32dd9002219cac6d6 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 28 May 2016 22:28:26 -0700 Subject: fix random lint issues This only eliminates errors reported by `make lint`. It shouldn't cause any functional changes. This change does remove several functions that are unused. It also removes the `desc_arr` variable which is both unused and out of date with reality. --- src/signal.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/signal.cpp') diff --git a/src/signal.cpp b/src/signal.cpp index 8aa55828..60066d3d 100644 --- a/src/signal.cpp +++ b/src/signal.cpp @@ -198,11 +198,13 @@ static void default_handler(int signal, siginfo_t *info, void *context) { } } +#ifdef SIGWINCH /// Respond to a winch signal by checking the terminal size. static void handle_winch(int sig, siginfo_t *info, void *context) { common_handle_winch(sig); default_handler(sig, 0, 0); } +#endif /// Respond to a hup signal by exiting, unless it is caught by a shellscript function, in which case /// we do nothing. -- cgit v1.2.3