Source-Changes-HG archive

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

[src/trunk]: src/sys/net Change the caddr_t to uintptr_t and remove the cast ...



details:   https://anonhg.NetBSD.org/src/rev/a56ef5d59156
branches:  trunk
changeset: 515431:a56ef5d59156
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Sep 24 21:47:57 2001 +0000

description:
Change the caddr_t to uintptr_t and remove the cast ... it gave problems
compiling on an LP64 ... discussed with Gimpy, atatat and bleeh

diffstat:

 sys/net/if_ieee80211subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r da33c20492ab -r a56ef5d59156 sys/net/if_ieee80211subr.c
--- a/sys/net/if_ieee80211subr.c        Mon Sep 24 20:27:08 2001 +0000
+++ b/sys/net/if_ieee80211subr.c        Mon Sep 24 21:47:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ieee80211subr.c,v 1.3 2001/09/20 13:54:43 onoe Exp $        */
+/*     $NetBSD: if_ieee80211subr.c,v 1.4 2001/09/24 21:47:57 reinoud Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -435,8 +435,8 @@
                m_freem(m);
                return NULL;
        }
-       if (ALIGN(mtod(m, caddr_t) + sizeof(*eh)) !=
-           (u_int)(mtod(m, caddr_t) + sizeof(*eh))) {
+       if (ALIGN(mtod(m, uintptr_t) + sizeof(*eh)) !=
+           (mtod(m, uintptr_t) + sizeof(*eh))) {
                struct mbuf *n, *n0, **np;
                caddr_t newdata;
                int off;



Home | Main Index | Thread Index | Old Index