# HG changeset patch # User adrian # Date 1068159211 0 # Node ID f5967016f79a92b6ce5005edd80c505ce71f8380 # Parent a2f99e9147b91a5fcef5ba594d64271ceb4163cf [xemacs-hg @ 2003-11-06 22:53:31 by adrian] xemacs-21.5: Minor cleanup of nt\minitar.c -------------------- ChangeLog entries follow: -------------------- nt/ChangeLog addition: 2003-11-06 Adrian Aichner * minitar.c (Usage): Change return type to void. * minitar.c (main): Fix inconsistent indentation, use return instead of exit to fix compiler warning. diff -r a2f99e9147b9 -r f5967016f79a nt/ChangeLog --- a/nt/ChangeLog Thu Nov 06 22:50:35 2003 +0000 +++ b/nt/ChangeLog Thu Nov 06 22:53:31 2003 +0000 @@ -1,3 +1,9 @@ +2003-11-06 Adrian Aichner + + * minitar.c (Usage): Change return type to void. + * minitar.c (main): Fix inconsistent indentation, use return + instead of exit to fix compiler warning. + 2003-10-27 Jerry James * README: Update library versions. Delete irrelevant text. diff -r a2f99e9147b9 -r f5967016f79a nt/minitar.c --- a/nt/minitar.c Thu Nov 06 22:50:35 2003 +0000 +++ b/nt/minitar.c Thu Nov 06 22:53:31 2003 +0000 @@ -23,13 +23,12 @@ #include -static int +static void Usage (char *name) { fprintf (stderr, "Usage: %s file.tar.gz [base-dir]\n", name); fprintf (stderr, "\tExtracts the contents compressed tar file to base-dir\n"); exit (-1); - return 0; } @@ -223,7 +222,9 @@ if (size==0) /* file of size 0 is done */ in_block = 0; } - } else { /* write or continue writing file contents */ + } + else + { /* write or continue writing file contents */ nbytes = size>512? 512:size; nwritten = fwrite (block, 1, nbytes, outfile);