summaryrefslogtreecommitdiff
path: root/src/core/snapshot.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-26 15:30:22 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-26 15:49:54 -0500
commitf78e6385dc4cee0a1f399c4c89ebf823c108d447 (patch)
treee1baf230750ddd221b8bdd71ac4d62f5b3472968 /src/core/snapshot.c
parente3e0314b56012f7febc279d268f2cadc1fcc0f25 (diff)
Use enums to make it obvious what boolean params mean
Suggested-by: Russ Allbery <rra@debian.org>
Diffstat (limited to 'src/core/snapshot.c')
-rw-r--r--src/core/snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/snapshot.c b/src/core/snapshot.c
index 21e89ac996..d914af20e7 100644
--- a/src/core/snapshot.c
+++ b/src/core/snapshot.c
@@ -200,7 +200,7 @@ int snapshot_create(Manager *m, const char *name, bool cleanup, sd_bus_error *e,
assert(_s);
if (name) {
- if (!unit_name_is_valid(name, false))
+ if (!unit_name_is_valid(name, TEMPLATE_INVALID))
return sd_bus_error_setf(e, SD_BUS_ERROR_INVALID_ARGS, "Unit name %s is not valid.", name);
if (unit_name_to_type(name) != UNIT_SNAPSHOT)