Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Missing parens get cast wrong. Grr.



details:   https://anonhg.NetBSD.org/src/rev/62173154f7ab
branches:  trunk
changeset: 565911:62173154f7ab
user:      atatat <atatat%NetBSD.org@localhost>
date:      Fri Apr 23 12:02:43 2004 +0000

description:
Missing parens get cast wrong.  Grr.

diffstat:

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

diffs (20 lines):

diff -r 3fddae2203a0 -r 62173154f7ab sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Fri Apr 23 12:02:39 2004 +0000
+++ b/sys/sys/sysctl.h  Fri Apr 23 12:02:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.122 2004/04/22 03:32:11 atatat Exp $      */
+/*     $NetBSD: sysctl.h,v 1.123 2004/04/23 12:02:43 atatat Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -1148,8 +1148,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