]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic: use -EINVAL for _DUID_TYPE_INVALID
authorBenjamin Robin <dev@benjarobin.fr>
Tue, 16 Feb 2021 22:22:37 +0000 (23:22 +0100)
committerBenjamin Robin <dev@benjarobin.fr>
Tue, 16 Feb 2021 22:39:58 +0000 (23:39 +0100)
Follow-up of #11484 and of #18481

src/basic/unit-def.h

index 7742c5c078593e2ce4c8c264944b8378b51e2f14..508b4c504da25e58bdf96323e56e84f7f51cf2d8 100644 (file)
@@ -62,7 +62,7 @@ typedef enum UnitMarker {
         UNIT_MARKER_NEEDS_RELOAD,
         UNIT_MARKER_NEEDS_RESTART,
         _UNIT_MARKER_MAX,
-        _UNIT_MARKER_INVALID = -1
+        _UNIT_MARKER_INVALID = -EINVAL,
 } UnitMarker;
 
 typedef enum AutomountState {