]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/unit-name.h
tree-wide: use -EINVAL for enum invalid values
[thirdparty/systemd.git] / src / basic / unit-name.h
index c25672fad26d1b29b38973f39179870c8221e02b..19d70abea8cc6b93c4d1a3089da1af3b424a1e63 100644 (file)
@@ -13,7 +13,7 @@ typedef enum UnitNameFlags {
         UNIT_NAME_TEMPLATE = 1 << 1, /* Allow foo@.service */
         UNIT_NAME_INSTANCE = 1 << 2, /* Allow foo@bar.service */
         UNIT_NAME_ANY = UNIT_NAME_PLAIN|UNIT_NAME_TEMPLATE|UNIT_NAME_INSTANCE,
-        _UNIT_NAME_INVALID = -1,
+        _UNIT_NAME_INVALID = -EINVAL,
 } UnitNameFlags;
 
 bool unit_name_is_valid(const char *n, UnitNameFlags flags) _pure_;