libsystemd-network: use -EINVAL for _DUID_TYPE_INVALID

Follow-up of #11484
This commit is contained in:
Benjamin Robin
2021-02-16 23:40:30 +01:00
parent 7a563bb2bd
commit 0979e4adb5
+1 -1
View 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: