From 2d328bb76d2d63bdfdba923b54c28bd686bd8fec Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 17 Mar 2008 23:17:13 -0400 Subject: Fix miscellaneous gcc -Wall warnings Signed-off-by: "Theodore Ts'o" --- misc/chattr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'misc/chattr.c') 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; } -- cgit v1.2.3