Module Name: src
Committed By: christos
Date: Tue Sep 13 19:35:12 UTC 2011
Modified Files:
src/external/bsd/bind/dist/lib/dns: sdlz.c
Log Message:
avoid type punning
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/bind/dist/lib/dns/sdlz.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/bind/dist/lib/dns/sdlz.c
diff -u src/external/bsd/bind/dist/lib/dns/sdlz.c:1.3 src/external/bsd/bind/dist/lib/dns/sdlz.c:1.4
--- src/external/bsd/bind/dist/lib/dns/sdlz.c:1.3 Sun Sep 11 14:55:37 2011
+++ src/external/bsd/bind/dist/lib/dns/sdlz.c Tue Sep 13 15:35:12 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: sdlz.c,v 1.3 2011/09/11 18:55:37 christos Exp $ */
+/* $NetBSD: sdlz.c,v 1.4 2011/09/13 19:35:12 christos Exp $ */
/*
* Portions Copyright (C) 2005-2011 Internet Systems Consortium, Inc. ("ISC")
@@ -472,13 +472,16 @@
createnode(dns_sdlz_db_t *sdlz, dns_sdlznode_t **nodep) {
dns_sdlznode_t *node;
isc_result_t result;
+ void *sdlzv, *tdlzv;
node = isc_mem_get(sdlz->common.mctx, sizeof(dns_sdlznode_t));
if (node == NULL)
return (ISC_R_NOMEMORY);
node->sdlz = NULL;
- attach((dns_db_t *)sdlz, (dns_db_t **)&node->sdlz);
+ sdlzv = sdlz;
+ tdlzv = &node->sdlz;
+ attach(sdlzv, tdlzv);
ISC_LIST_INIT(node->lists);
ISC_LIST_INIT(node->buffers);
ISC_LINK_INIT(node, link);