summaryrefslogtreecommitdiffstats
path: root/src/syrep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syrep.c')
-rw-r--r--src/syrep.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/syrep.c b/src/syrep.c
index 7325178..c9ad001 100644
--- a/src/syrep.c
+++ b/src/syrep.c
@@ -256,7 +256,8 @@ finish:
static int do_foreach(int (*func) (struct syrep_db_context *c), int m) {
char *path = NULL;
- int r = 1, i;
+ int r = 1;
+ unsigned i;
struct syrep_db_context *c = NULL;
if (args.inputs_num < 1)
@@ -328,7 +329,8 @@ finish:
static int do_update(void) {
char *path = NULL;
- int r = 1, i;
+ int r = 1;
+ unsigned i;
struct syrep_db_context *c = NULL;
struct syrep_md_cache *cache = NULL;
@@ -424,7 +426,8 @@ finish:
}
static int do_cleanup(void) {
- int r = 1, i;
+ int r = 1;
+ unsigned i;
if (args.inputs_num < 1)
fprintf(stderr, "WARNING: No repository specified!\n");
@@ -455,7 +458,8 @@ finish:
static int do_forget(void) {
char *path = NULL;
- int r = 1, i;
+ int r = 1;
+ unsigned i;
struct syrep_db_context *c = NULL, *target = NULL;
if (args.inputs_num < 1)
@@ -519,7 +523,7 @@ static void sigint(int s) {
}
static void free_args(void) {
- int i;
+ unsigned i;
for (i = 0; i < args.inputs_num; i++)
free(args.inputs[i]);
@@ -527,7 +531,6 @@ static void free_args(void) {
free(args.inputs);
}
-
static int help(const char *argv0) {
fprintf(stderr,