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.)
bitmap-optimize
Theodore Ts'o 1997-09-16 02:13:52 +00:00
parent a8859cad87
commit 00e5433eb5
7 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,15 @@
Mon Sep 15 22:07:12 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* tune2fs.c (main):
* mklost+found.c (main):
* lsattr.c (main):
* dumpe2fs.c (main):
* chattr.c (main):
* badblocks.c (main): 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.)
Mon Jul 14 15:27:29 1997 Theodore Y. Ts'o <tytso@mit.edu>
* e2label.c: New file contributed by Andries Brouwer which

View File

@ -260,7 +260,7 @@ static void test_rw (int dev, unsigned long blocks_count,
}
}
void main (int argc, char ** argv)
int main (int argc, char ** argv)
{
char c;
char * tmp;
@ -346,4 +346,5 @@ void main (int argc, char ** argv)
close (dev);
if (out != stdout)
fclose (out);
exit(0);
}

View File

@ -302,7 +302,7 @@ static int chattr_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)
{
int i, j;
int end_arg = 0;
@ -334,4 +334,5 @@ void main (int argc, char ** argv)
}
for (j = i; j < argc; j++)
change_attributes (argv[j]);
exit(0);
}

View File

@ -172,7 +172,7 @@ static int i386_byteorder(void)
return (*cp == 1);
}
void main (int argc, char ** argv)
int main (int argc, char ** argv)
{
errcode_t retval;
ext2_filsys fs;

View File

@ -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);
}

View File

@ -27,7 +27,7 @@
#define LPF "lost+found"
void main (int argc, char ** argv)
int main (int argc, char ** argv)
{
char name [EXT2_NAME_LEN];
char path [sizeof (LPF) + 1 + 256];

View File

@ -101,7 +101,7 @@ static volatile void usage (void)
exit (1);
}
void main (int argc, char ** argv)
int main (int argc, char ** argv)
{
char c;
char * tmp;