From a952692561d8b1c59d4a384812b52d7225953bb3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 19 Jul 2004 16:04:48 +0000 Subject: add support for --forget git-svn-id: file:///home/lennart/svn/public/syrep/trunk@58 07ea20a6-d2c5-0310-9e02-9ef735347d72 --- src/update.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/update.c') diff --git a/src/update.c b/src/update.c index 6fc2d06..4fe6758 100644 --- a/src/update.c +++ b/src/update.c @@ -59,7 +59,7 @@ static int dbput(DB* db, const void *k, int klen, const void*d, int dlen, int f) return 1; } -static int write_entry(struct syrep_db_context *c, const struct syrep_name *name, const struct syrep_md *md, const struct syrep_meta *meta) { +int write_entry(struct syrep_db_context *c, const struct syrep_name *name, const struct syrep_md *md, const struct syrep_meta *meta) { struct syrep_id id; struct syrep_nrecno nrecno; int f; @@ -95,7 +95,7 @@ static int write_entry(struct syrep_db_context *c, const struct syrep_name *name if ((f = dbput(c->db_nrecno_lastmd, &nrecno, sizeof(struct syrep_nrecno), md, sizeof(struct syrep_md), 0)) < 0) return -1; - //fprintf(stderr, "Insert: %s %i\n", name->path, f); + /*fprintf(stderr, "Insert: %s %i\n", name->path, f);*/ c->modified = 1; return 0; -- cgit