exit-status: reorder the exit status switch table
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Oct 2016 18:11:21 +0000 (20:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Oct 2016 18:11:21 +0000 (20:11 +0200)
Let's make sure it's in the same order as the actual enum defining the exit
statuses.

src/basic/exit-status.c

index d2a8d3b..81c2c66 100644 (file)
@@ -140,12 +140,12 @@ const char* exit_status_to_string(int status, ExitStatusLevel level) {
                 case EXIT_RUNTIME_DIRECTORY:
                         return "RUNTIME_DIRECTORY";
 
-                case EXIT_CHOWN:
-                        return "CHOWN";
-
                 case EXIT_MAKE_STARTER:
                         return "MAKE_STARTER";
 
+                case EXIT_CHOWN:
+                        return "CHOWN";
+
                 case EXIT_SMACK_PROCESS_LABEL:
                         return "SMACK_PROCESS_LABEL";
                 }