Fix some C compatibility bugs reported by Joerg Schilling.

This commit is contained in:
Paul Eggert
2003-11-13 06:23:23 +00:00
parent 182091e79f
commit 572225dfdc
6 changed files with 32 additions and 27 deletions

View File

@@ -1,3 +1,20 @@
2003-11-12 Paul Eggert <eggert@twinsun.com>
Fix some C compatibility bugs reported by Joerg Schilling.
* src/common.h (stripped_prefix_len): Fix misspelling
"stripped_path_len" in declaration.
* src/rmt.c (main): Use "return FOO;" rather than
"exit (FOO);"; we no longer have to worry about
pre-ANSI hosts that mishandled returned values from "main".
* src/tar.c (main): Likewise. This avoids warnings on some
compilers.
* src/system.c: Include signal.h, for 'kill'.
* src/system.h (DEV_BSIZE): Remove.
(DEFAULT_ST_BLKSIZE): New macro.
(ST_BLKSIZE): Use it, instead of DEV_BSIZE.
* src/tar.c (enum): Remove comma just before }.
2003-11-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* src/list.c (decode_header): Initialize st_atime and