diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-03-17 23:17:13 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-03-17 23:17:13 -0400 |
commit | 2d328bb76d2d63bdfdba923b54c28bd686bd8fec (patch) | |
tree | 1fed780f438de72083387ebaa81f4cbccd2aaf2c /misc/chattr.c | |
parent | a7c9cb7d0dc464eda26958595b728a6c3a4cacbc (diff) | |
download | e2fsprogs-2d328bb76d2d63bdfdba923b54c28bd686bd8fec.tar.gz |
Fix miscellaneous gcc -Wall warnings
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/chattr.c')
-rw-r--r-- | misc/chattr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/chattr.c b/misc/chattr.c index efaa5596..daae163d 100644 --- a/misc/chattr.c +++ b/misc/chattr.c @@ -185,9 +185,9 @@ static int decode_arg (int * i, int argc, char ** argv) return 1; } -static int chattr_dir_proc (const char *, struct dirent *, void *); +static int chattr_dir_proc(const char *, struct dirent *, void *); -static int change_attributes (const char * name, int cmdline) +static int change_attributes(const char * name) { unsigned long flags; STRUCT_STAT st; @@ -265,7 +265,7 @@ static int chattr_dir_proc (const char * dir_name, struct dirent * de, return -1; } sprintf(path, "%s/%s", dir_name, de->d_name); - ret = change_attributes(path, 0); + ret = change_attributes(path); free(path); } return ret; @@ -314,7 +314,7 @@ int main (int argc, char ** argv) fprintf (stderr, "chattr %s (%s)\n", E2FSPROGS_VERSION, E2FSPROGS_DATE); for (j = i; j < argc; j++) { - err = change_attributes (argv[j], 1); + err = change_attributes (argv[j]); if (err) retval = 1; } |