aboutsummaryrefslogtreecommitdiff
path: root/e2fsck/pass3.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-01-06 05:55:58 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-01-06 05:55:58 +0000
commit53ef44c40a3e425d2c700d8fd77a6b655aa121fe (patch)
treec2df1b8492ab48c8dd977bc89586beb95c112261 /e2fsck/pass3.c
parent8820c79f75c37a3bc85cea7f56e7277025e157ef (diff)
downloade2fsprogs-53ef44c40a3e425d2c700d8fd77a6b655aa121fe.tar.gz
Many files:
journal.c, pass1.c, pass1b.c, pass3.c, recovery.c, revoke.c, super.c, unix.c, util.c: Fix random gcc -Wall complaints. jfs_user.h: Use more sophisticated inline handling to allow building with --enable-gcc-wall
Diffstat (limited to 'e2fsck/pass3.c')
-rw-r--r--e2fsck/pass3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c
index 695e3b87..32005a91 100644
--- a/e2fsck/pass3.c
+++ b/e2fsck/pass3.c
@@ -359,7 +359,7 @@ static int check_directory(e2fsck_t ctx, struct dir_info *dir,
* This routine gets the lost_and_found inode, making it a directory
* if necessary
*/
-ino_t get_lost_and_found(e2fsck_t ctx)
+static ino_t get_lost_and_found(e2fsck_t ctx)
{
ext2_filsys fs = ctx->fs;
ino_t ino;
@@ -367,7 +367,7 @@ ino_t get_lost_and_found(e2fsck_t ctx)
errcode_t retval;
struct ext2_inode inode;
char * block;
- const char name[] = "lost+found";
+ static const char name[] = "lost+found";
struct problem_context pctx;
struct dir_info *dirinfo;
@@ -487,7 +487,7 @@ ino_t get_lost_and_found(e2fsck_t ctx)
* Miscellaneous bookkeeping that needs to be kept straight.
*/
e2fsck_add_dir_info(ctx, ino, EXT2_ROOT_INO);
- adjust_inode_count(ctx, EXT2_ROOT_INO, +1);
+ adjust_inode_count(ctx, EXT2_ROOT_INO, 1);
ext2fs_icount_store(ctx->inode_count, ino, 2);
ext2fs_icount_store(ctx->inode_link_info, ino, 2);
#if 0
@@ -541,7 +541,7 @@ int e2fsck_reconnect_file(e2fsck_t ctx, ino_t ino)
fix_problem(ctx, PR_3_CANT_RECONNECT, &pctx);
return 1;
}
- adjust_inode_count(ctx, ino, +1);
+ adjust_inode_count(ctx, ino, 1);
return 0;
}