Module Name: src
Committed By: christos
Date: Sun Oct 25 20:53:43 UTC 2009
Modified Files:
src/external/bsd/bind/dist/lib/isc: backtrace.c
Log Message:
paper over pointer aliasing problem
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/bind/dist/lib/isc/backtrace.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/isc/backtrace.c
diff -u src/external/bsd/bind/dist/lib/isc/backtrace.c:1.1.1.1 src/external/bsd/bind/dist/lib/isc/backtrace.c:1.2
--- src/external/bsd/bind/dist/lib/isc/backtrace.c:1.1.1.1 Sat Oct 24 20:02:42 2009
+++ src/external/bsd/bind/dist/lib/isc/backtrace.c Sun Oct 25 16:53:43 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: backtrace.c,v 1.1.1.1 2009/10/25 00:02:42 christos Exp $ */
+/* $NetBSD: backtrace.c,v 1.2 2009/10/25 20:53:43 christos Exp $ */
/*
* Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
@@ -187,7 +187,7 @@
* first argument. Note that the body of this function cannot be
* inlined since it depends on the address of the function argument.
*/
- sp = (void **)&addrs - 2;
+ sp = (void **)(void *)&addrs - 2;
#endif
while (sp != NULL && i < maxaddrs) {