C89 (what this library is compiled in) requires for loop iterators to be initialized outside the for loop.
const size_t body_size = 1024 * 1024;
const size_t buff_size = 2 * 1024 * 1024;
char *body, *body_read, *buff;
+ int n;
assert((body = malloc(body_size)) != NULL);
assert((body_read = malloc(body_size)) != NULL);
* buffer is exactly 256k).
*/
- for(int n = 1024; n < (int)body_size; n += 1024) {
+ for(n = 1024; n < (int)body_size; n += 1024) {
struct archive *a;
struct archive_entry *entry;
size_t used = 0;