Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/ipf Get rid of a compiler warning saying "dereferencing...



details:   https://anonhg.NetBSD.org/src/rev/4c23d36d8550
branches:  trunk
changeset: 574806:4c23d36d8550
user:      he <he%NetBSD.org@localhost>
date:      Sun Mar 13 10:44:40 2005 +0000

description:
Get rid of a compiler warning saying "dereferencing type-punned pointer
will break strict-aliasing rules" by casting the argument to rn_inithead()
to (void*) instead of (void**).

diffstat:

 dist/ipf/radix.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c5375d65573c -r 4c23d36d8550 dist/ipf/radix.c
--- a/dist/ipf/radix.c  Sun Mar 13 09:37:06 2005 +0000
+++ b/dist/ipf/radix.c  Sun Mar 13 10:44:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radix.c,v 1.1.1.1 2004/03/28 08:55:49 martti Exp $     */
+/*     $NetBSD: radix.c,v 1.2 2005/03/13 10:44:40 he Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1993
@@ -1046,7 +1046,7 @@
        addmask_key = cplim = rn_ones + max_keylen;
        while (cp < cplim)
                *cp++ = -1;
-       if (rn_inithead((void **)&mask_rnhead, 0) == 0)
+       if (rn_inithead((void *)&mask_rnhead, 0) == 0)
                panic("rn_init 2");
 }
 



Home | Main Index | Thread Index | Old Index