Fix a const mistake.
* function does not return the number of encrypted entries but#
* just shows that there are some.
*/
-__LA_DECL char archive_read_has_encrypted_entries(struct archive *);
+__LA_DECL int archive_read_has_encrypted_entries(struct archive *);
/*
* Returns a bitmask of capabilities that are supported by the archive format reader.
* function does not return the number of encrypted entries but#
* just shows that there are some.
*/
-char
+int
archive_read_has_encrypted_entries(struct archive *_a)
{
struct archive_read *a = (struct archive_read *)_a;
int64_t (*seek_data)(struct archive_read *, int64_t, int),
int (*cleanup)(struct archive_read *),
int (*format_capabilities)(struct archive_read *),
- char (*has_encrypted_entries)(struct archive_read *))
+ int (*has_encrypted_entries)(struct archive_read *))
{
int i, number_slots;
int64_t (*seek_data)(struct archive_read *, int64_t, int);
int (*cleanup)(struct archive_read *);
int (*format_capabilties)(struct archive_read *);
- char (*has_encrypted_entries)(struct archive_read *);
+ int (*has_encrypted_entries)(struct archive_read *);
} formats[16];
struct archive_format_descriptor *format; /* Active format. */
int64_t (*seek_data)(struct archive_read *, int64_t, int),
int (*cleanup)(struct archive_read *),
int (*format_capabilities)(struct archive_read *),
- char (*has_encrypted_entries)(struct archive_read *));
+ int (*has_encrypted_entries)(struct archive_read *));
int __archive_read_get_bidder(struct archive_read *a,
struct archive_read_filter_bidder **bidder);
char format_name[64];
/* Custom value that is non-zero if this archive contains encrypted entries. */
- char has_encrypted_entries;
+ char has_encrypted_entries;
};
-static char archive_read_format_7zip_has_encrypted_entries(struct archive_read *);
+static int archive_read_format_7zip_has_encrypted_entries(struct archive_read *);
static int archive_read_support_format_7zip_capabilities(struct archive_read *a);
static int archive_read_format_7zip_bid(struct archive_read *, int);
static int archive_read_format_7zip_cleanup(struct archive_read *);
}
-static char archive_read_format_7zip_has_encrypted_entries(struct archive_read *_a)
+static int
+archive_read_format_7zip_has_encrypted_entries(struct archive_read *_a)
{
if (_a && _a->format) {
struct _7zip * zip = (struct _7zip *)_a->format->data;
};
static int archive_read_support_format_rar_capabilities(struct archive_read *);
-static char archive_read_format_rar_has_encrypted_entries(struct archive_read *);
+static int archive_read_format_rar_has_encrypted_entries(struct archive_read *);
static int archive_read_format_rar_bid(struct archive_read *, int);
static int archive_read_format_rar_options(struct archive_read *,
const char *, const char *);
| ARCHIVE_READ_FORMAT_CAPS_ENCRYPT_METADATA);
}
-static char archive_read_format_rar_has_encrypted_entries(struct archive_read *_a)
+static int
+archive_read_format_rar_has_encrypted_entries(struct archive_read *_a)
{
if (_a && _a->format) {
struct rar * rar = (struct rar *)_a->format->data;
#define ZIP_CENTRAL_DIRECTORY_ENCRYPTED (1<<13)
#define ZIP_UTF8_NAME (1<<11)
-static char archive_read_format_zip_has_encrypted_entries(struct archive_read *);
+static int archive_read_format_zip_has_encrypted_entries(struct archive_read *);
static int archive_read_support_format_zip_capabilities_seekable(struct archive_read *a);
static int archive_read_support_format_zip_capabilities_streamable(struct archive_read *a);
static int archive_read_format_zip_streamable_bid(struct archive_read *,
}
-static char
+static int
archive_read_format_zip_has_encrypted_entries(struct archive_read *_a)
{
if (_a && _a->format) {
#ifdef HAVE_BZLIB_H
{
const char *p = BZ2_bzlibVersion();
- char *sep = strchr(p, ',');
+ const char *sep = strchr(p, ',');
if (sep == NULL)
sep = p + strlen(p);
archive_strcat(&str, " bz2lib/");