diff options
author | Theodore Ts'o <tytso@mit.edu> | 1997-09-16 02:13:52 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1997-09-16 02:13:52 +0000 |
commit | 00e5433eb5e9f70f485968b809fdcf297d7fe7b9 (patch) | |
tree | 92041cff7a9965385245ac42d3d87a45bdcc3b57 /misc/lsattr.c | |
parent | a8859cad8790514cf2c41507aaea1ff3b751b954 (diff) | |
download | e2fsprogs-00e5433eb5e9f70f485968b809fdcf297d7fe7b9.tar.gz |
Many files:
Declare main() to return an int, as required. Make sure main() always
ends with an exit(0). (Some programs weren't doing this, and thus
were returning a random exit value.)
Diffstat (limited to 'misc/lsattr.c')
-rw-r--r-- | misc/lsattr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/lsattr.c b/misc/lsattr.c index 60d60f0d..17687219 100644 --- a/misc/lsattr.c +++ b/misc/lsattr.c @@ -119,7 +119,7 @@ static int lsattr_dir_proc (const char * dir_name, struct dirent * de, void * pr return 0; } -void main (int argc, char ** argv) +int main (int argc, char ** argv) { char c; int i; @@ -156,4 +156,5 @@ void main (int argc, char ** argv) else for (i = optind; i < argc; i++) lsattr_args (argv[i]); + exit(0); } |