summaryrefslogtreecommitdiff
path: root/misc/chattr.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1998-06-27 05:11:14 +0000
committerTheodore Ts'o <tytso@mit.edu>1998-06-27 05:11:14 +0000
commit818180cdfcff84b9048ecdc5dc86323f0fefba24 (patch)
treed8405d0cb0f74ce8f23baa4cb5f278d09dbb3961 /misc/chattr.c
parent4faba5b2aebb89619f5798274394670cce96370c (diff)
downloade2fsprogs-818180cdfcff84b9048ecdc5dc86323f0fefba24.tar.gz
ChangeLog, debugfs.8.in, debugfs.c:
Add a -V option which displays the current version. ChangeLog, unix.c: unix.c (e2fsck_update_progress): Remove unused variables. ChangeLog, inode.c: inode.c (get_next_blockgroup): Fix bug where if get_next_blockgroup() is called early because of a missing inode table in a block group, the current_inode counter wasn't incremented correctly. ChangeLog, tst_uuid.c: tst_uuid.c (main): Fixed bogus declaration of the main's argv parameter. ChangeLog, test_icount.c: test_icount.c (main): Fix main() declaration so that it returns int, not void. Many files: fsck.c (ignore): Remove unused variable cp. chattr.c (fatal_error): tune2fs.c (usage): lsattr.c (usage): dumpe2fs.c (usage): badblocks.c (usage): Remove volatile from declaration. fsck.c: Change use of strdup to be string_copy, since we don't trust what glibc is doing with strdup. (Whatever it is, it isn't pretty.)
Diffstat (limited to 'misc/chattr.c')
-rw-r--r--misc/chattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/chattr.c b/misc/chattr.c
index 7f40f885..c8c92453 100644
--- a/misc/chattr.c
+++ b/misc/chattr.c
@@ -51,13 +51,13 @@ unsigned long af;
unsigned long rf;
unsigned long sf;
-static void volatile fatal_error (const char * fmt_string, int errcode)
+static void fatal_error(const char * fmt_string, int errcode)
{
fprintf (stderr, fmt_string, program_name);
exit (errcode);
}
-#define usage() fatal_error ("usage: %s [-RV] [-+=AacdisSu] [-v version] files...\n", \
+#define usage() fatal_error("usage: %s [-RV] [-+=AacdisSu] [-v version] files...\n", \
1)
static int decode_arg (int * i, int argc, char ** argv)