diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:20:26 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:20:26 +0000 |
commit | 415b40a63a40779bcede8b022a398163999ef84a (patch) | |
tree | 4ad6894bbda00c2f9ee978d728a70334f341c1fc /ufs | |
parent | 006c9fc994ee55ed37e2999b1049061f9e1e88c3 (diff) |
(read_disk_entry): Proper syntax.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/ufs.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 */ |