]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-tool: reduce scope of enum
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2023 13:38:40 +0000 (14:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2023 15:13:07 +0000 (16:13 +0100)
src/mount/mount-tool.c

index 90feb2f1979a2319a6c0206070fc075eba4d2209..29bde2ab8e04dfa8c10d68d048ef06d13fb782c3 100644 (file)
@@ -1410,18 +1410,18 @@ static int discover_device(void) {
         return 0;
 }
 
-enum {
-        COLUMN_NODE,
-        COLUMN_PATH,
-        COLUMN_MODEL,
-        COLUMN_WWN,
-        COLUMN_FSTYPE,
-        COLUMN_LABEL,
-        COLUMN_UUID,
-        _COLUMN_MAX,
-};
-
 static int list_devices(void) {
+        enum {
+                COLUMN_NODE,
+                COLUMN_PATH,
+                COLUMN_MODEL,
+                COLUMN_WWN,
+                COLUMN_FSTYPE,
+                COLUMN_LABEL,
+                COLUMN_UUID,
+                _COLUMN_MAX,
+        };
+
         _cleanup_(sd_device_enumerator_unrefp) sd_device_enumerator *e = NULL;
         _cleanup_(table_unrefp) Table *table = NULL;
         int r;