Module Name:    src
Committed By:   snj
Date:           Sun Jul  5 20:27:41 UTC 2015

Modified Files:
        src/sys/sys [netbsd-7]: dirent.h

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.28.28.1 src/sys/sys/dirent.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/dirent.h
diff -u src/sys/sys/dirent.h:1.28 src/sys/sys/dirent.h:1.28.28.1
--- src/sys/sys/dirent.h:1.28	Tue Sep 27 01:40:32 2011
+++ src/sys/sys/dirent.h	Sun Jul  5 20:27:41 2015
@@ -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 {
  * 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)

Reply via email to