Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys fix inadequate parens in macro (my fault originally)
details: https://anonhg.NetBSD.org/src/rev/072c78a77291
branches: trunk
changeset: 336333:072c78a77291
user: dholland <dholland%NetBSD.org@localhost>
date: Thu Feb 26 02:05:54 2015 +0000
description:
fix inadequate parens in macro (my fault originally)
diffstat:
sys/sys/dirent.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7d421af52f6f -r 072c78a77291 sys/sys/dirent.h
--- a/sys/sys/dirent.h Thu Feb 26 00:58:17 2015 +0000
+++ b/sys/sys/dirent.h Thu Feb 26 02:05:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dirent.h,v 1.28 2011/09/27 01:40:32 christos Exp $ */
+/* $NetBSD: dirent.h,v 1.29 2015/02/26 02:05:54 dholland Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -91,7 +91,7 @@
* struct dirent
*/
#if __GNUC_PREREQ__(4, 0)
-#define _DIRENT_NAMEOFF(dp) __builtin_offsetof(__typeof__(*dp), d_name)
+#define _DIRENT_NAMEOFF(dp) __builtin_offsetof(__typeof__(*(dp)), d_name)
#else
#define _DIRENT_NAMEOFF(dp) \
((char *)(void *)&(dp)->d_name - (char *)(void *)dp)
Home |
Main Index |
Thread Index |
Old Index