diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-26 15:30:22 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-26 15:49:54 -0500 |
commit | f78e6385dc4cee0a1f399c4c89ebf823c108d447 (patch) | |
tree | e1baf230750ddd221b8bdd71ac4d62f5b3472968 /src/core/manager.c | |
parent | e3e0314b56012f7febc279d268f2cadc1fcc0f25 (diff) |
Use enums to make it obvious what boolean params mean
Suggested-by: Russ Allbery <rra@debian.org>
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 6b33c18283..f69ae079df 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1115,7 +1115,7 @@ int manager_load_unit_prepare( t = unit_name_to_type(name); - if (t == _UNIT_TYPE_INVALID || !unit_name_is_valid(name, false)) + if (t == _UNIT_TYPE_INVALID || !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); ret = manager_get_unit(m, name); |