diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-10-14 11:12:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-10-14 11:41:32 +0200 |
commit | b364c4de6289003e5f431f865a0ded73f44f6f29 (patch) | |
tree | 5b22e0f6ad5a0e1d7b5dbae098f80ce4a0ac5174 /src/systemctl | |
parent | f8662fee2fac735385dc060f1435e4af5327138d (diff) | |
download | systemd-b364c4de6289003e5f431f865a0ded73f44f6f29.tar.gz |
install: include full type name in special UnitFilePresetMode values
Typically the _MAX and _INVALID special enum values use the full type as
prefix, even if the actual values of the enum might not. Let's follow
this rule here too.
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 430f59d496..5858c3f6d3 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -838,7 +838,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) { case ARG_PRESET_MODE: if (streq(optarg, "help")) { - DUMP_STRING_TABLE(unit_file_preset_mode, UnitFilePresetMode, _UNIT_FILE_PRESET_MAX); + DUMP_STRING_TABLE(unit_file_preset_mode, UnitFilePresetMode, _UNIT_FILE_PRESET_MODE_MAX); return 0; } |