Mercurial > hg > xemacs-beta
changeset 1782:f5967016f79a
[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 <adrian@xemacs.org>
* minitar.c (Usage): Change return type to void.
* minitar.c (main): Fix inconsistent indentation, use return
instead of exit to fix compiler warning.
author | adrian |
---|---|
date | Thu, 06 Nov 2003 22:53:31 +0000 |
parents | a2f99e9147b9 |
children | 487c8a6512c6 |
files | nt/ChangeLog nt/minitar.c |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <adrian@xemacs.org> + + * 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 <james@xemacs.org> * README: Update library versions. Delete irrelevant text.
--- 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 <zlib.h> -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);