git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1de1a
)
dns server: fix warning about enum mismatch
author
Uri Simchoni
<uri@samba.org>
Sun, 19 Nov 2017 16:49:46 +0000
(16:49 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 22 Nov 2017 09:20:20 +0000
(10:20 +0100)
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>
source4/dns_server/dns_query.c
patch
|
blob
|
history
diff --git
a/source4/dns_server/dns_query.c
b/source4/dns_server/dns_query.c
index fa9272156abf0fa53707bc989b6d39c6e2e8859d..8d3f601b70802982e2740bd505f8c4f772820c91 100644
(file)
--- 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;