Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/sys Pull up revision 1.123 (requested by atatat in ...



details:   https://anonhg.NetBSD.org/src/rev/a96f9d5bd401
branches:  netbsd-2-0
changeset: 560543:a96f9d5bd401
user:      jdc <jdc%NetBSD.org@localhost>
date:      Mon Apr 26 19:46:10 2004 +0000

description:
Pull up revision 1.123 (requested by atatat in ticket #180)

Missing parens get cast wrong.  Grr.

diffstat:

 sys/sys/sysctl.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 8a7c1351cb13 -r a96f9d5bd401 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Sat Apr 24 18:34:07 2004 +0000
+++ b/sys/sys/sysctl.h  Mon Apr 26 19:46:10 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.116.2.5 2004/04/22 07:50:48 tron Exp $    */
+/*     $NetBSD: sysctl.h,v 1.116.2.6 2004/04/26 19:46:10 jdc Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -1146,8 +1146,8 @@
 #define __sysc_desc_roundup(x) ((((x) - 1) | (sizeof(int32_t) - 1)) + 1)
 #define __sysc_desc_adv(d, l) \
        (/*LINTED ptr cast*/(struct sysctldesc *) \
-       ((const char*)(d)) + offsetof(struct sysctldesc, descr_str) + \
-               __sysc_desc_roundup(l))
+       (((const char*)(d)) + offsetof(struct sysctldesc, descr_str) + \
+               __sysc_desc_roundup(l)))
 #define NEXT_DESCR(d) __sysc_desc_adv((d), (d)->descr_len)
 
 static __inline struct sysctlnode *



Home | Main Index | Thread Index | Old Index