From: Uri Simchoni Date: Sun, 19 Nov 2017 16:49:46 +0000 (+0000) Subject: dns server: fix warning about enum mismatch X-Git-Tag: talloc-2.1.11~410 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fd04020c2bd5ae24f434ddef5976b39c2bfe2b4;p=thirdparty%2Fsamba.git dns server: fix warning about enum mismatch Fix picky developer clang warning about assignment of an enum value to a variable of a different enum type. Signed-off-by: Uri Simchoni Reviewed-by: Andrew Bartlett --- diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c index fa9272156ab..8d3f601b708 100644 --- a/source4/dns_server/dns_query.c +++ b/source4/dns_server/dns_query.c @@ -133,7 +133,7 @@ static WERROR add_response_rr(const char *name, ans[ai].name = talloc_strdup(ans, name); W_ERROR_HAVE_NO_MEMORY(ans[ai].name); - ans[ai].rr_type = rec->wType; + ans[ai].rr_type = (enum dns_qtype)rec->wType; ans[ai].rr_class = DNS_QCLASS_IN; ans[ai].ttl = rec->dwTtlSeconds; ans[ai].length = UINT16_MAX;