We never use the argument to read_file_index

stream
Dave Vasilevsky 12 years ago
parent dedbc6d23f
commit cad2ee95eb

@ -146,10 +146,9 @@ lzma_vli find_file_index(void **bdatap) {
return ret; return ret;
} }
lzma_vli read_file_index(lzma_vli offset) { lzma_vli read_file_index() {
void *bdata = NULL; void *bdata = NULL;
if (!offset) lzma_vli offset = find_file_index(&bdata);
offset = find_file_index(&bdata);
if (!offset) if (!offset)
return 0; return 0;

@ -7,7 +7,7 @@ void pixz_list(bool tar) {
lzma_index_iter iter; lzma_index_iter iter;
lzma_index_iter_init(&iter, gIndex); lzma_index_iter_init(&iter, gIndex);
if (tar && read_file_index(0)) { if (tar && read_file_index()) {
dump_file_index(stdout, false); dump_file_index(stdout, false);
free_file_index(); free_file_index();
} else { } else {

@ -71,7 +71,7 @@ bool is_multi_header(const char *name);
void decode_index(void); void decode_index(void);
lzma_vli find_file_index(void **bdatap); lzma_vli find_file_index(void **bdatap);
lzma_vli read_file_index(lzma_vli offset); lzma_vli read_file_index(void);
void dump_file_index(FILE *out, bool verbose); void dump_file_index(FILE *out, bool verbose);
void free_file_index(void); void free_file_index(void);

@ -62,7 +62,7 @@ static void check_capacity(io_block_t *ib, size_t incap, size_t outcap);
void pixz_read(bool verify, size_t nspecs, char **specs) { void pixz_read(bool verify, size_t nspecs, char **specs) {
decode_index(); decode_index();
if (verify) if (verify)
gFileIndexOffset = read_file_index(0); gFileIndexOffset = read_file_index();
wanted_files(nspecs, specs); wanted_files(nspecs, specs);
#if DEBUG #if DEBUG

Loading…
Cancel
Save