summaryrefslogtreecommitdiffstats
path: root/src/shared/parse-argument.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/parse-argument.c')
-rw-r--r--src/shared/parse-argument.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/parse-argument.c b/src/shared/parse-argument.c
index 145bd119ac..e6159c1482 100644
--- a/src/shared/parse-argument.c
+++ b/src/shared/parse-argument.c
@@ -31,16 +31,16 @@ int parse_boolean_argument(const char *optname, const char *s, bool *ret) {
}
}
-int parse_json_argument(const char *s, JsonFormatFlags *ret) {
+int parse_json_argument(const char *s, sd_json_format_flags_t *ret) {
assert(s);
assert(ret);
if (streq(s, "pretty"))
- *ret = JSON_FORMAT_PRETTY|JSON_FORMAT_COLOR_AUTO;
+ *ret = SD_JSON_FORMAT_PRETTY|SD_JSON_FORMAT_COLOR_AUTO;
else if (streq(s, "short"))
- *ret = JSON_FORMAT_NEWLINE;
+ *ret = SD_JSON_FORMAT_NEWLINE;
else if (streq(s, "off"))
- *ret = JSON_FORMAT_OFF;
+ *ret = SD_JSON_FORMAT_OFF;
else if (streq(s, "help")) {
puts("pretty\n"
"short\n"