]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
libsystemd-network: use -EINVAL for _DUID_TYPE_INVALID
authorBenjamin Robin <dev@benjarobin.fr>
Tue, 16 Feb 2021 22:23:13 +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/libsystemd-network/dhcp-identifier.h

index e9f2ea7e95ebe2e00b1cce2a66fea5ad0ba90c60..1d9a9c55ba907124a76f903b94e1acf160b00ca9 100644 (file)
@@ -16,7 +16,7 @@ typedef enum DUIDType {
         DUID_TYPE_LL        = 3,
         DUID_TYPE_UUID      = 4,
         _DUID_TYPE_MAX,
-        _DUID_TYPE_INVALID  = -1,
+        _DUID_TYPE_INVALID  = -EINVAL,
 } DUIDType;
 
 /* RFC 3315 section 9.1: