mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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 <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
5b1de1aee2
commit
5fd04020c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user