]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: define _DNS_SERVER_TYPE_MAX in enum
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 23 Jul 2018 16:23:41 +0000 (01:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 23 Jul 2018 16:23:41 +0000 (01:23 +0900)
src/resolve/resolved-dns-server.h

index dffc4217d11ac4fe57421aca9ee84063d05d173b..53d45a63614c2cb297153eaec9447b304572b7e1 100644 (file)
@@ -13,8 +13,9 @@ typedef enum DnsServerType {
         DNS_SERVER_SYSTEM,
         DNS_SERVER_FALLBACK,
         DNS_SERVER_LINK,
+        _DNS_SERVER_TYPE_MAX,
+        _DNS_SERVER_TYPE_INVALID = -1
 } DnsServerType;
-#define _DNS_SERVER_TYPE_MAX (DNS_SERVER_LINK + 1)
 
 const char* dns_server_type_to_string(DnsServerType i) _const_;
 DnsServerType dns_server_type_from_string(const char *s) _pure_;