diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-11-13 14:38:40 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-11-13 16:13:07 +0100 |
commit | 4cbf9d52f3687b1e2d903e50755fdad2a45ba082 (patch) | |
tree | 60a088f6b8492b36a415b667659e9aa6f6cf464a /src/mount | |
parent | util-lib: share plymouth client code (diff) | |
download | systemd-4cbf9d52f3687b1e2d903e50755fdad2a45ba082.tar.xz systemd-4cbf9d52f3687b1e2d903e50755fdad2a45ba082.zip |
mount-tool: reduce scope of enum
Diffstat (limited to 'src/mount')
-rw-r--r-- | src/mount/mount-tool.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 90feb2f197..29bde2ab8e 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -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; |