From 336c507ac2723ee9d4d187ea4fb99e24890d0be5 Mon Sep 17 00:00:00 2001 From: dholland Date: Thu, 26 Feb 2015 02:05:54 +0000 Subject: [PATCH] fix inadequate parens in macro (my fault originally) --- sys/sys/dirent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/dirent.h b/sys/sys/dirent.h index fb00f5bfd9c1f..902d0619ed8e9 100644 --- a/sys/sys/dirent.h +++ b/sys/sys/dirent.h @@ -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 { * 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)