Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Move a type cast (wrt description handling) and do a...
details: https://anonhg.NetBSD.org/src/rev/dc6ad59f3ca4
branches: trunk
changeset: 565866:dc6ad59f3ca4
user: atatat <atatat%NetBSD.org@localhost>
date: Thu Apr 22 03:32:11 2004 +0000
description:
Move a type cast (wrt description handling) and do a little lint
cleaning.
diffstat:
sys/sys/sysctl.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r 81bb83baf097 -r dc6ad59f3ca4 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h Thu Apr 22 02:19:39 2004 +0000
+++ b/sys/sys/sysctl.h Thu Apr 22 03:32:11 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.h,v 1.121 2004/04/17 15:17:33 christos Exp $ */
+/* $NetBSD: sysctl.h,v 1.122 2004/04/22 03:32:11 atatat Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -1147,10 +1147,10 @@
#define __sysc_desc_roundup(x) ((((x) - 1) | (sizeof(int32_t) - 1)) + 1)
#define __sysc_desc_adv(d, l) \
- (((const char*)(d)) + offsetof(struct sysctldesc, descr_str) + \
+ (/*LINTED ptr cast*/(struct sysctldesc *) \
+ ((const char*)(d)) + offsetof(struct sysctldesc, descr_str) + \
__sysc_desc_roundup(l))
-#define NEXT_DESCR(d) ((struct sysctldesc *) \
- __sysc_desc_adv((d), (d)->descr_len))
+#define NEXT_DESCR(d) __sysc_desc_adv((d), (d)->descr_len)
static __inline struct sysctlnode *
sysctl_rootof(struct sysctlnode *n)
Home |
Main Index |
Thread Index |
Old Index