Make the array const to fix warning.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Sun, 15 Nov 2009 07:18:03 +0000 (07:18 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Sun, 15 Nov 2009 07:18:03 +0000 (07:18 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@304 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libbb/libbb.h
libbb/unarchive.c

index 860dacdfb09dea61bb2b9456a8593b0f980a6336..e5b2df5f336a58e78af11b18f9ad97ef40258a0e 100644 (file)
@@ -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);
index bd10ad92d6cdd42d2bb42c711af8680805aa5280..9ef77a5fe3489705488c3c9d6de9e4d2a8e525c7 100644 (file)
@@ -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];