int
_archive_set_option(struct archive *a,
const char *m, const char *o, const char *v,
- int magic, const char *fn, option_handler use_option)
+ unsigned int magic, const char *fn, option_handler use_option)
{
const char *mp, *op, *vp;
int r;
int
_archive_set_options(struct archive *a, const char *options,
- int magic, const char *fn, option_handler use_option)
+ unsigned int magic, const char *fn, option_handler use_option)
{
int allok = 1, anyok = 0, ignore_mod_err = 0, r;
char *data;
int
_archive_set_option(struct archive *a,
const char *mod, const char *opt, const char *val,
- int magic, const char *fn, option_handler use_option);
+ unsigned int magic, const char *fn, option_handler use_option);
int
_archive_set_options(struct archive *a, const char *options,
- int magic, const char *fn, option_handler use_option);
+ unsigned int magic, const char *fn, option_handler use_option);
int
_archive_set_either_option(struct archive *a,
#endif
/* Initiate/terminate a tree traversal. */
-static struct tree *tree_open(const char *, int, int);
+static struct tree *tree_open(const char *, char, int);
static struct tree *tree_reopen(struct tree *, const char *, int);
static void tree_close(struct tree *);
static void tree_free(struct tree *);
static void
setup_symlink_mode(struct archive_read_disk *a, char symlink_mode,
- int follow_symlinks)
+ char follow_symlinks)
{
a->symlink_mode = symlink_mode;
a->follow_symlinks = follow_symlinks;
* Open a directory tree for traversal.
*/
static struct tree *
-tree_open(const char *path, int symlink_mode, int restore_time)
+tree_open(const char *path, char symlink_mode, int restore_time)
{
struct tree *t;
/*
* Since symlink interaction changes, we need to track whether
- * we're following symlinks for the current item. 'L' mode above
- * sets this true, 'P' sets it false, 'H' changes it as we traverse.
+ * we're following symlinks for the current item, governed by the above
+ * symlink_mode. 'L' sets this true, 'P' sets it false, 'H' changes it
+ * as we traverse.
*/
- char follow_symlinks; /* Either 'L' or 'P'. */
+ char follow_symlinks; /* Either 0 or 1. */
/* Directory traversals. */
struct tree *tree;
static void
setup_symlink_mode(struct archive_read_disk *a, char symlink_mode,
- int follow_symlinks)
+ char follow_symlinks)
{
a->symlink_mode = symlink_mode;
a->follow_symlinks = follow_symlinks;
static int compression_end_lzma(struct archive *, struct la_zstream *);
#endif
static int compression_init_encoder_ppmd(struct archive *,
- struct la_zstream *, unsigned, uint32_t);
+ struct la_zstream *, uint8_t, uint32_t);
static int compression_code_ppmd(struct archive *,
struct la_zstream *, enum la_zaction);
static int compression_end_ppmd(struct archive *, struct la_zstream *);
static int
compression_init_encoder_ppmd(struct archive *a,
- struct la_zstream *lastrm, unsigned maxOrder, uint32_t msize)
+ struct la_zstream *lastrm, uint8_t maxOrder, uint32_t msize)
{
struct ppmd_stream *strm;
uint8_t *props;
static int archive_write_gnutar_options(struct archive_write *,
const char *, const char *);
static int archive_format_gnutar_header(struct archive_write *, char h[512],
- struct archive_entry *, int tartype);
+ struct archive_entry *, char tartype);
static int archive_write_gnutar_header(struct archive_write *,
struct archive_entry *entry);
static ssize_t archive_write_gnutar_data(struct archive_write *a, const void *buff,
{
char buff[512];
int r, ret, ret2 = ARCHIVE_OK;
- int tartype;
+ char tartype;
struct gnutar *gnutar;
struct archive_string_conv *sconv;
struct archive_entry *entry_main;
static int
archive_format_gnutar_header(struct archive_write *a, char h[512],
- struct archive_entry *entry, int tartype)
+ struct archive_entry *entry, char tartype)
{
unsigned int checksum;
int i, ret;