]> Dogcows Code - chaz/tar/commit
Remove some lint, found by gcc -W etc.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Jun 2010 20:04:12 +0000 (13:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Jun 2010 20:04:12 +0000 (13:04 -0700)
commitf6edb92580aa886a2a0189463c19189a050dc62d
tree96ea86ae7947409602bef86a79861ca49ce4e74c
parente21d54e8cd3d8026ad56f90cc6bde831106c2cb9
Remove some lint, found by gcc -W etc.

* src/common.h (label_notfound): New decl.
* src/buffer.c (set_volume_start_time, compress_type):
(guess_seekable_archive, open_compressed_archive, init_buffer):
(_flush_write, archive_is-dev, increase_volume_number):
(change_tape_menu, try_new_volume, add_chunk_header):
(multi_volume_sync):
Declare as 'static' if it's not exported.
Use function prototype (void) rather than old-style ().
* src/checkpoint.c (expand_checkpoint_string): Likewise.
* src/incremen.c (dirlist_replace_prefix, makedumpdir, read_incr_db_2):
Likewise.
* src/list.c (print_volume_label): Likewise.
* src/misc.c (normalize_filename_x): Likewise.
* src/names.c (make_name, free_name, check_name_alloc, name_next_elt):
Likewise.
* src/tar.c (tar_list_quoting_style, add_exclude_array):
(set_stat_signal): Likewise.
* src/transform.c (new_transform, _single_transform_name_to_obstack):
(_transform_name_to_obstack): Likewise.
* src/unlink.c (dunlink_alloc): Likewise.

* src/buffer.c (struct zip_magic): Use const when appropriate.
* src/incremen.c (obstack_code_rename, write_directory_file_entry):
Likewise.
* src/sparse.c (COPY_STRING): Likewise.
* src/system.c (dec_to_env, time_to_env, oct_to_env, str_to_env):
(chr_to_env): Likewise.
* src/tar.c (tar_list_quoting_style, set_stat_signal): Likewise.

* src/extract.c (extract_node): Don't return garbage.

* src/names.c: Remove old-style declarations of getgrnam etc.
All modern systems declare these, and it's not worth the hassle
of ignoring the warnings on modern systems for old-style decls.
13 files changed:
src/buffer.c
src/checkpoint.c
src/common.h
src/extract.c
src/incremen.c
src/list.c
src/misc.c
src/names.c
src/sparse.c
src/system.c
src/tar.c
src/transform.c
src/unlink.c
This page took 0.025423 seconds and 4 git commands to generate.