summaryrefslogtreecommitdiff
path: root/e2fsck
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2003-12-28 13:04:35 +0100
committerMatthias Andree <matthias.andree@gmx.de>2003-12-28 13:04:35 +0100
commitb969b1b8a5c13992cadb026114731958644540d8 (patch)
tree24a4193043326c3d4ca8d3dd4183d3e445ae8163 /e2fsck
parent151a71620d99a6b93ee8817e78ef4ca6eb229340 (diff)
downloade2fsprogs-b969b1b8a5c13992cadb026114731958644540d8.tar.gz
Fix more compiler warnings.
Diffstat (limited to 'e2fsck')
-rw-r--r--e2fsck/journal.c3
-rw-r--r--e2fsck/pass1.c1
-rw-r--r--e2fsck/pass2.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/e2fsck/journal.c b/e2fsck/journal.c
index c645f3be..7432eedf 100644
--- a/e2fsck/journal.c
+++ b/e2fsck/journal.c
@@ -122,10 +122,11 @@ void ll_rw_block(int rw, int nr, struct buffer_head *bhp[])
}
bh->b_dirty = 0;
bh->b_uptodate = 1;
- } else
+ } else {
jfs_debug(3, "no-op %s for block %lu\n",
rw == READ ? "read" : "write",
(unsigned long) bh->b_blocknr);
+ }
}
}
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c
index 20628078..c6e90872 100644
--- a/e2fsck/pass1.c
+++ b/e2fsck/pass1.c
@@ -37,6 +37,7 @@
* found.
*/
+#define _GNU_SOURCE 1 /* get strnlen() */
#include <string.h>
#include <time.h>
#ifdef HAVE_ERRNO_H
diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c
index dee2c194..c3858ab9 100644
--- a/e2fsck/pass2.c
+++ b/e2fsck/pass2.c
@@ -41,6 +41,7 @@
* - The inode_reg_map bitmap
*/
+#define _GNU_SOURCE 1 /* get strnlen() */
#include <string.h>
#include "e2fsck.h"