Make the array const to fix warning.
[oweals/opkg-lede.git] / libbb / libbb.h
index c54038d045a41771245a3dec29e6a5b001ce8a3d..e5b2df5f336a58e78af11b18f9ad97ef40258a0e 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <netdb.h>
 
-// Include because of single use with ipkg
+// Include because of single use with opkg
 #define _BB_INTERNAL_H_
 #define L_archive_offset
 #define L_get_header_ar
@@ -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);
@@ -345,8 +341,4 @@ extern const char * const can_not_create_raw_socket;
 #define fork   vfork
 #endif
 
-/* Stupid gcc always includes its own builtin strlen()... */
-extern size_t xstrlen(const char *string);
-#define strlen(x)      xstrlen(x)
-
 #endif /* __LIBBB_H__ */