diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-07-19 16:04:48 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-07-19 16:04:48 +0000 |
commit | a952692561d8b1c59d4a384812b52d7225953bb3 (patch) | |
tree | 8a171edfa50639f6a79af39ceeab332dac56047d /src/update.c | |
parent | ebf3b3ad1795c877c4164b46aab1397237210417 (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.c | 4 |
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; |