summaryrefslogtreecommitdiff
path: root/ufs/ufs.h
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
commit415b40a63a40779bcede8b022a398163999ef84a (patch)
tree4ad6894bbda00c2f9ee978d728a70334f341c1fc /ufs/ufs.h
parent006c9fc994ee55ed37e2999b1049061f9e1e88c3 (diff)
(read_disk_entry): Proper syntax.
Diffstat (limited to 'ufs/ufs.h')
-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 */