From f458511ece586b012a531dd7bc095ebc6be97b1e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Jun 2005 13:59:32 +0000 Subject: remove an uneeded warning git-svn-id: file:///home/lennart/svn/public/syrep/trunk@81 07ea20a6-d2c5-0310-9e02-9ef735347d72 --- src/diff.c | 2 ++ src/util.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/diff.c b/src/diff.c index b2d33a7..7f97ba7 100644 --- a/src/diff.c +++ b/src/diff.c @@ -209,6 +209,8 @@ static int enumerate(DB *ddb, struct syrep_db_context *c1, struct syrep_db_conte if (meta->last_seen != c1->version) continue; + memset(&name, 0, sizeof(name)); + if ((f = get_name_by_nrecno(c1, &id->nrecno, &name)) < 0) return -1; diff --git a/src/util.c b/src/util.c index a8b55af..4eebd1a 100644 --- a/src/util.c +++ b/src/util.c @@ -495,7 +495,7 @@ int copy_or_link_file(const char *src, const char *dst, int c) { if (errno == EXDEV || errno == EPERM) return copy_file(src, dst, c); - fprintf(stderr, "link(%s, %s): %s\n", src, dst, strerror(errno)); +/* fprintf(stderr, "link(%s, %s): %s\n", src, dst, strerror(errno)); */ return -1; } -- cgit