From: Lennart Poettering Date: Fri, 29 Dec 2017 17:14:37 +0000 (+0100) Subject: pager: let's move static variables up, to the rest of them X-Git-Tag: v237~146^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f60395254a786b57ddae4891f6afedb7eba3b33;p=thirdparty%2Fsystemd.git pager: let's move static variables up, to the rest of them let's keep static variables together, and before the function definitions. --- diff --git a/src/shared/pager.c b/src/shared/pager.c index d26fa0e6fbe..75db3c985bd 100644 --- a/src/shared/pager.c +++ b/src/shared/pager.c @@ -42,6 +42,11 @@ static pid_t pager_pid = 0; +static int stored_stdout = -1; +static int stored_stderr = -1; +static bool stdout_redirected = false; +static bool stderr_redirected = false; + noreturn static void pager_fallback(void) { int r; @@ -54,11 +59,6 @@ noreturn static void pager_fallback(void) { _exit(EXIT_SUCCESS); } -static int stored_stdout = -1; -static int stored_stderr = -1; -static bool stdout_redirected = false; -static bool stderr_redirected = false; - int pager_open(bool no_pager, bool jump_to_end) { _cleanup_close_pair_ int fd[2] = { -1, -1 }; const char *pager;