git.samba.org
/
kamenim
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More const fixes. Remove CONST_DISCARD.
[kamenim/samba-autobuild/.git]
/
lib
/
addns
/
dnsrecord.c
diff --git
a/lib/addns/dnsrecord.c
b/lib/addns/dnsrecord.c
index 559c2644d44a1ef3d5fb37b4797184d80e446cd0..528fdf29ab320c1a1e213134a118c5a6ae0b4a15 100644
(file)
--- a/
lib/addns/dnsrecord.c
+++ b/
lib/addns/dnsrecord.c
@@
-131,7
+131,7
@@
DNS_ERROR dns_create_a_record(TALLOC_CTX *mem_ctx, const char *host,
return ERROR_DNS_SUCCESS;
}
- ip = ((struct sockaddr_in *)pss)->sin_addr;
+ ip = ((
const
struct sockaddr_in *)pss)->sin_addr;
if (!(data = (uint8 *)TALLOC_MEMDUP(mem_ctx, (const void *)&ip.s_addr,
sizeof(ip.s_addr)))) {
return ERROR_DNS_NO_MEMORY;