Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/sys Pull up following revision(s) (requested by dholl...



details:   https://anonhg.NetBSD.org/src/rev/2685743778bf
branches:  netbsd-7
changeset: 799457:2685743778bf
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Jul 05 20:27:41 2015 +0000

description:
Pull up following revision(s) (requested by dholland in ticket #859):
        sys/sys/dirent.h: revision 1.29
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 20cab7819a3e -r 2685743778bf sys/sys/dirent.h
--- a/sys/sys/dirent.h  Sun Jul 05 20:25:15 2015 +0000
+++ b/sys/sys/dirent.h  Sun Jul 05 20:27:41 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.28.28.1 2015/07/05 20:27:41 snj 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