summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-23 18:20:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-23 18:20:26 +0000
commitdbfeebc5456f832d8b6daf0b563587b5e4ca4f91 (patch)
tree8a52ffa6e0f2bc84cc36be2b9354c6e294f31c00
parent4e2aa139eaca196f8479e52bb73a30029d534a8e (diff)
(read_disk_entry): Proper syntax.
-rw-r--r--ufs/ufs.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ufs/ufs.h b/ufs/ufs.h
index dba7acd9..2c1a3fde 100644
--- a/ufs/ufs.h
+++ b/ufs/ufs.h
@@ -190,14 +190,16 @@ swab_long (long arg)
/* Return ENTRY, after byteswapping it if necessary */
#define read_disk_entry(entry) \
({ \
+ typeof (entry) ret; \
if (!swab_disk || sizeof (entry) == 1) \
- (entry); \
+ ret = (entry); \
else if (sizeof (entry) == 2) \
- swab_short (entry); \
+ ret = swab_short (entry); \
else if (sizeof (entry) == 4) \
- swab_long (entry); \
+ ret = swab_long (entry); \
else \
abort (); \
+ ret; \
})
/* Execute A = B, but byteswap it along the way if necessary */