diff options
author | Cristian RodrÃguez <crodriguez@owncloud.com> | 2022-11-11 16:31:18 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-11-12 01:40:16 +0100 |
commit | e14afe31c3e8380496dc85b57103b2f648bc7d43 (patch) | |
tree | 11bc8a7eac62dbb169bceebb5aa284e95a49a4af /src/resolve | |
parent | journal-remote: code is of type enum MHD_RequestTerminationCode (diff) | |
download | systemd-e14afe31c3e8380496dc85b57103b2f648bc7d43.tar.xz systemd-e14afe31c3e8380496dc85b57103b2f648bc7d43.zip |
resolve: dns_server_feature_level_*_string type is DnsServerFeatureLevel
gcc 13 -Wenum-int-mismatch reminds us that enum != int
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-server.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-server.h b/src/resolve/resolved-dns-server.h index be9efb0a79..f939b534c3 100644 --- a/src/resolve/resolved-dns-server.h +++ b/src/resolve/resolved-dns-server.h @@ -44,8 +44,8 @@ typedef enum DnsServerFeatureLevel { #define DNS_SERVER_FEATURE_LEVEL_IS_DNSSEC(x) ((x) >= DNS_SERVER_FEATURE_LEVEL_DO) #define DNS_SERVER_FEATURE_LEVEL_IS_UDP(x) IN_SET(x, DNS_SERVER_FEATURE_LEVEL_UDP, DNS_SERVER_FEATURE_LEVEL_EDNS0, DNS_SERVER_FEATURE_LEVEL_DO) -const char* dns_server_feature_level_to_string(int i) _const_; -int dns_server_feature_level_from_string(const char *s) _pure_; +const char* dns_server_feature_level_to_string(DnsServerFeatureLevel i) _const_; +DnsServerFeatureLevel dns_server_feature_level_from_string(const char *s) _pure_; struct DnsServer { Manager *manager; |