diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2003-12-28 13:04:35 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2003-12-28 13:04:35 +0100 |
commit | b969b1b8a5c13992cadb026114731958644540d8 (patch) | |
tree | 24a4193043326c3d4ca8d3dd4183d3e445ae8163 /e2fsck | |
parent | 151a71620d99a6b93ee8817e78ef4ca6eb229340 (diff) | |
download | e2fsprogs-b969b1b8a5c13992cadb026114731958644540d8.tar.gz |
Fix more compiler warnings.
Diffstat (limited to 'e2fsck')
-rw-r--r-- | e2fsck/journal.c | 3 | ||||
-rw-r--r-- | e2fsck/pass1.c | 1 | ||||
-rw-r--r-- | e2fsck/pass2.c | 1 |
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" |