]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/resolve/resolved-dns-scope.h
tree-wide: use -EINVAL for enum invalid values
[thirdparty/systemd.git] / src / resolve / resolved-dns-scope.h
index de05c0838f4d6c79d156ef3ac245de8657e5b862..82cd0becab7e958545f10e525585cfcef1ca7428 100644 (file)
@@ -22,7 +22,7 @@ typedef enum DnsScopeMatch {
         DNS_SCOPE_YES_BASE, /* Add the number of matching labels to this */
         DNS_SCOPE_YES_END = DNS_SCOPE_YES_BASE + DNS_N_LABELS_MAX,
         _DNS_SCOPE_MATCH_MAX,
-        _DNS_SCOPE_MATCH_INVALID = -1
+        _DNS_SCOPE_MATCH_INVALID = -EINVAL,
 } DnsScopeMatch;
 
 struct DnsScope {