From f78e6385dc4cee0a1f399c4c89ebf823c108d447 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 26 Dec 2013 15:30:22 -0500 Subject: Use enums to make it obvious what boolean params mean Suggested-by: Russ Allbery --- src/core/snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/snapshot.c') 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) -- cgit v1.2.3-54-g00ecf