From 7a2dee1d890df9fe5888ae8b8c80c41d3ae02f05 Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 1 May 2007 00:08:20 +0000 Subject: [PATCH] Fix wrong arguments in hash printing. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@985 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/client.c b/daemon/client.c index adf9be5..6aa1887 100644 --- a/daemon/client.c +++ b/daemon/client.c @@ -366,7 +366,7 @@ static void writehashcache(int now) for(hc = hashcache; hc != NULL; hc = hc->next) { buf = base64encode(hc->tth, 24); - fprintf(stream, "%lli %lli %li tth %s\n", hc->dev, (long long)hc->inode, hc->mtime, buf); + fprintf(stream, "%lli %lli %li tth %s\n", (long long)hc->dev, (long long)hc->inode, hc->mtime, buf); free(buf); } fclose(stream); @@ -499,7 +499,7 @@ static int hashfile(char *path) } synctigertree(&tth); restigertree(&tth, digest); - ret = snprintf(buf, sizeof(buf), "%lli %lli %li %s\n", sb.st_dev, (long long)sb.st_ino, sb.st_mtime, base64encode(digest, 24)); + ret = snprintf(buf, sizeof(buf), "%lli %lli %li %s\n", (long long)sb.st_dev, (long long)sb.st_ino, sb.st_mtime, base64encode(digest, 24)); write(1, buf, ret); exit(0); } -- 2.11.0