From b2972e79c5d11dfa0625bf43838cb65209f7e632 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 5 Jun 2005 20:14:45 +0000 Subject: * cleanup trash recursively * ignore some more files * compile as C99 with -pedantic * upgrade to Berkeley DB 4.3 * add some tests for rm_rf() and copy_fd() * remove some minor warnings * minor fixes git-svn-id: file:///home/lennart/svn/public/syrep/trunk@76 07ea20a6-d2c5-0310-9e02-9ef735347d72 --- src/syrep.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/syrep.c') 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, -- cgit