]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portable: use -EINVAL for _PORTABLE_CHANGE_TYPE_INVALID
authorBenjamin Robin <dev@benjarobin.fr>
Tue, 16 Feb 2021 22:23:41 +0000 (23:23 +0100)
committerBenjamin Robin <dev@benjarobin.fr>
Tue, 16 Feb 2021 22:40:30 +0000 (23:40 +0100)
Follow-up of #11484

src/portable/portable.h

index 724634feb8508d297bb7d9b01914cb9412308248..291d9377ef01041c87d3968695483cf8894701d4 100644 (file)
@@ -31,7 +31,7 @@ typedef enum PortableChangeType {
         PORTABLE_WRITE,
         PORTABLE_MKDIR,
         _PORTABLE_CHANGE_TYPE_MAX,
-        _PORTABLE_CHANGE_TYPE_INVALID = INT_MIN,
+        _PORTABLE_CHANGE_TYPE_INVALID = -EINVAL,
 } PortableChangeType;
 
 typedef enum PortableState {