]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pager: let's move static variables up, to the rest of them
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Dec 2017 17:14:37 +0000 (18:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:27:27 +0000 (13:27 +0100)
let's keep static variables together, and before the function
definitions.

src/shared/pager.c

index d26fa0e6fbe28b1541e918fec59d7dd2470dda62..75db3c985bd7a03ea33a05d6ddea351ab61f0b1c 100644 (file)
 
 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;