summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/fsck.h
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-11-17 23:48:21 +0000
committeriedowse <iedowse@FreeBSD.org>2001-11-17 23:48:21 +0000
commita0dc2079d2250dceca0b5ca75daa78b05554a474 (patch)
tree56abbf1dd0c6a1ca1e2e07f6e517262106e893df /sbin/fsck_ffs/fsck.h
parent43a07b3eb5824c0153abcabaa9195186756dda01 (diff)
downloadFreeBSD-src-a0dc2079d2250dceca0b5ca75daa78b05554a474.zip
FreeBSD-src-a0dc2079d2250dceca0b5ca75daa78b05554a474.tar.gz
Fix a large number of -Wall, -Wformat and -W compiler warnings.
These were mainly missing casts or wrong format strings in printf statements, but there were also missing includes, unused variables, functions and arguments. The choice of `long' vs `int' still seems almost random in a lot of places though.
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r--sbin/fsck_ffs/fsck.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h
index b316bb9..f9905b1 100644
--- a/sbin/fsck_ffs/fsck.h
+++ b/sbin/fsck_ffs/fsck.h
@@ -102,15 +102,17 @@ struct bufarea cgblk; /* cylinder group blocks */
struct bufarea *pdirbp; /* current directory contents */
struct bufarea *pbp; /* current inode block */
-#define dirty(bp) \
+#define dirty(bp) do { \
if (fswritefd < 0) \
pfatal("SETTING DIRTY FLAG IN READ_ONLY MODE\n"); \
else \
- (bp)->b_dirty = 1
-#define initbarea(bp) \
+ (bp)->b_dirty = 1; \
+} while (0)
+#define initbarea(bp) do { \
(bp)->b_dirty = 0; \
(bp)->b_bno = (ufs_daddr_t)-1; \
- (bp)->b_flags = 0;
+ (bp)->b_flags = 0; \
+} while (0)
#define sbdirty() dirty(&sblk)
#define cgdirty() dirty(&cgblk)
@@ -319,4 +321,3 @@ void rwerror __P((char *mesg, ufs_daddr_t blk));
void sblock_init __P((void));
void setinodebuf __P((ino_t));
int setup __P((char *dev));
-void voidquit __P((int));
OpenPOWER on IntegriCloud