summaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-07-19 16:04:48 +0000
committerLennart Poettering <lennart@poettering.net>2004-07-19 16:04:48 +0000
commita952692561d8b1c59d4a384812b52d7225953bb3 (patch)
tree8a171edfa50639f6a79af39ceeab332dac56047d /src/update.c
parentebf3b3ad1795c877c4164b46aab1397237210417 (diff)
add support for --forget
git-svn-id: file:///home/lennart/svn/public/syrep/trunk@58 07ea20a6-d2c5-0310-9e02-9ef735347d72
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c4
1 files changed, 2 insertions, 2 deletions
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;