summaryrefslogtreecommitdiff
path: root/ufs/dir.h
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-03-14 23:26:37 +0000
committerThomas Schwinge <tschwinge@gnu.org>2006-03-14 23:26:37 +0000
commitb3e5743bb26240cf69b2822446231178c50e2d9e (patch)
tree176d67e663c01fac9f028a90fef8f0a59a3c5112 /ufs/dir.h
parentfaf99c4817bcc8a4dd0f5f24743db9efa8df6447 (diff)
2006-03-15 Thomas Schwinge <tschwinge@gnu.org>
* dir.h (DIRECT_NAMELEN): Don't use ?: as a lvalue.
Diffstat (limited to 'ufs/dir.h')
-rw-r--r--ufs/dir.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ufs/dir.h b/ufs/dir.h
index e37b1e9c..5730ef44 100644
--- a/ufs/dir.h
+++ b/ufs/dir.h
@@ -91,13 +91,13 @@ struct directory_entry {
/* Return the namlen from a struct direct, paying attention to whether
this filesystem supports the type extension */
#if (BYTE_ORDER == LITTLE_ENDIAN)
-#define DIRECT_NAMLEN(dp) (direct_symlink_extension || swab_disk \
- ? (dp)->d_namlen \
- : (dp)->d_type)
+#define DIRECT_NAMLEN(dp) (*(direct_symlink_extension || swab_disk \
+ ? &(dp)->d_namlen \
+ : &(dp)->d_type))
#else
-#define DIRECT_NAMLEN(dp) (!direct_symlink_extension && swab_disk \
- ? (dp)->d_type \
- : (dp)->d_namlen)
+#define DIRECT_NAMLEN(dp) (*(!direct_symlink_extension && swab_disk \
+ ? &(dp)->d_type \
+ : &(dp)->d_namlen))
#endif
/*