summaryrefslogtreecommitdiffstats
path: root/src/syrep.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-06-05 20:14:45 +0000
committerLennart Poettering <lennart@poettering.net>2005-06-05 20:14:45 +0000
commitb2972e79c5d11dfa0625bf43838cb65209f7e632 (patch)
treeee45296a668255b7ad63dfc0e0963209a7299093 /src/syrep.c
parent37621a019f8fb5e0ac2e506b45279ab7ba67a167 (diff)
* 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
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,