]> git.gag.com Git - debian/tar/commit
Fix problems caught by static checking
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Sep 2015 15:31:07 +0000 (08:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Sep 2015 15:32:15 +0000 (08:32 -0700)
commita65086c71c62cb978f8d0068b953cfde9cdb8a02
treec2dec8865b62b590bd16235490bc0c623fe744cb
parentae23a57d7003eee5cf323a29bf956c19aea3b63f
Fix problems caught by static checking

Most of these can be caught by configuring with --enable-gcc-warnings.
Problem reported by Pavel Raiskup in:
http://lists.gnu.org/archive/html/bug-tar/2015-09/msg00001.html
* src/buffer.c (format_total_stats):
Prefer pointer to const when it’s OK to use const.
(default_total_format): Now const.
* src/buffer.c (default_total_format):
* src/exclist.c (excfile_head, excfile_tail, vcs_ignore_files):
* src/misc.c (namebuf_add_dir, namebuf_finish):
* src/tar.c (verbatim_files_from_option, option_set_in_cl)
(optloc_eq, set_old_files_option):
Now static.
* src/common.h: Adjust to match the other changes described here.
* src/exclist.c (info_cleanup_exclist):
* src/tar.c (argp_program_version, argp_program_bug_address):
Remove; unused.
(parse_default_options): Define via prototype instead of old style.
(parse_default_options, decode_options):
Fill out incomplete initializers.
src/buffer.c
src/common.h
src/exclist.c
src/misc.c
src/tar.c