summaryrefslogtreecommitdiff
path: root/src/shared/unit-name.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/unit-name.h')
-rw-r--r--src/shared/unit-name.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/unit-name.h b/src/shared/unit-name.h
index daeb56a860..6f139cc4c4 100644
--- a/src/shared/unit-name.h
+++ b/src/shared/unit-name.h
@@ -156,8 +156,10 @@ enum unit_name_mangle {
MANGLE_GLOB,
};
-char *unit_name_mangle(const char *name, enum unit_name_mangle allow_globs);
char *unit_name_mangle_with_suffix(const char *name, enum unit_name_mangle allow_globs, const char *suffix);
+static inline char *unit_name_mangle(const char *name, enum unit_name_mangle allow_globs) {
+ return unit_name_mangle_with_suffix(name, allow_globs, ".service");
+}
int build_subslice(const char *slice, const char*name, char **subslice);