Source-Changes-HG archive

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

[src/trunk]: src/sys/sys __typeof__, not __typeof, to avoid confusing passersby.



details:   https://anonhg.NetBSD.org/src/rev/bca964532b2c
branches:  trunk
changeset: 768156:bca964532b2c
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue Aug 09 20:05:04 2011 +0000

description:
__typeof__, not __typeof, to avoid confusing passersby.

diffstat:

 sys/sys/dirent.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5cc882326685 -r bca964532b2c sys/sys/dirent.h
--- a/sys/sys/dirent.h  Tue Aug 09 18:37:56 2011 +0000
+++ b/sys/sys/dirent.h  Tue Aug 09 20:05:04 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dirent.h,v 1.26 2011/07/05 07:32:33 dholland Exp $     */
+/*     $NetBSD: dirent.h,v 1.27 2011/08/09 20:05:04 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