aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-10-09 17:26:29 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-10-09 17:26:29 +0000
commit16b2833f9015f1498e498f5716a5da87e0afbedf (patch)
tree3b90c3972d59398af3a09d495e563d281855ba19
parent88c94345f22626fd1d609c310db656d129dfba30 (diff)
downloadsrc-16b2833f9015f1498e498f5716a5da87e0afbedf.tar.gz
src-16b2833f9015f1498e498f5716a5da87e0afbedf.zip
Backout r272825 every useland usage of ufs/ufs/dir.h are now broken with that change
Notes
Notes: svn path=/head/; revision=272832
-rw-r--r--sys/ufs/ufs/dir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/dir.h b/sys/ufs/ufs/dir.h
index 82b9e7797814..65f3ab18357c 100644
--- a/sys/ufs/ufs/dir.h
+++ b/sys/ufs/ufs/dir.h
@@ -110,7 +110,7 @@ struct direct {
*
*/
#define DIRECTSIZ(namlen) \
- ((offsetof(struct direct, d_name) + \
+ (((uintptr_t)&((struct direct *)0)->d_name + \
((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3)
#if (BYTE_ORDER == LITTLE_ENDIAN)
#define DIRSIZ(oldfmt, dp) \