diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-15 02:18:03 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-15 02:18:03 (EST) |
commit | d09832770a367d0a77c92dd77336330a47cac75a (patch) | |
tree | 530507a3cfa60caa7e455e8262704b9e98365c54 /libbb | |
parent | 3f4b79e8ce98192e59d6488e2e8f9fe178487571 (diff) |
Make the array const to fix warning.
git-svn-id: http://opkg.googlecode.com/svn/trunk@304 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/libbb.h | 4 | ||||
-rw-r--r-- | libbb/unarchive.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/libbb/libbb.h b/libbb/libbb.h index 860dacd..e5b2df5 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -258,10 +258,6 @@ enum extract_functions_e { extract_quiet = 2048, extract_exclude_list = 4096 }; -char *unarchive(FILE *src_stream, FILE *out_stream, - file_header_t *(*get_header)(FILE *), - void (*free_headers)(file_header_t *), - const int extract_function, const char *prefix, char **extract_names); char *deb_extract(const char *package_filename, FILE *out_stream, const int extract_function, const char *prefix, const char *filename); int read_package_field(const char *package_buffer, char **field_name, char **field_value); diff --git a/libbb/unarchive.c b/libbb/unarchive.c index bd10ad9..9ef77a5 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c @@ -272,7 +272,7 @@ cleanup: char *unarchive(FILE *src_stream, FILE *out_stream, file_header_t *(*get_headers)(FILE *), void (*free_headers)(file_header_t *), - const int extract_function, const char *prefix, char **extract_names) + const int extract_function, const char *prefix, const char **extract_names) { file_header_t *file_entry; int extract_flag; @@ -732,7 +732,7 @@ char *deb_extract(const char *package_filename, FILE *out_stream, FILE *deb_stream = NULL; FILE *uncompressed_stream = NULL; file_header_t *ar_header = NULL; - char **file_list = NULL; + const char **file_list = NULL; char *output_buffer = NULL; char *ared_file = NULL; char ar_magic[8]; |