Move variable definitions to the start of their respective blocks.
Improves support for older compilers.
From Boaz Stolk <bstolk@aweta.nl>.
diff --git a/regress/modify.c b/regress/modify.c
index 4b9d376..916bdc7 100644
--- a/regress/modify.c
+++ b/regress/modify.c
@@ -133,13 +133,14 @@
static int
add_from_zip(int argc, char *argv[]) {
- zip_uint64_t idx;
+ zip_uint64_t idx, start;
+ zip_int64_t len;
int err;
zip_source_t *zs;
/* add from another zip file */
idx = strtoull(argv[2], NULL, 10);
- zip_uint64_t start = strtoull(argv[3], NULL, 10);
- zip_int64_t len = strtoll(argv[4], NULL, 10);
+ start = strtoull(argv[3], NULL, 10);
+ len = strtoll(argv[4], NULL, 10);
if ((z_in[z_in_count]=zip_open(argv[1], ZIP_CHECKCONS, &err)) == NULL) {
zip_error_t error;
zip_error_init_with_code(&error, err);