X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fclient.c;h=6aa1887b91817382badd43ad0a23c6503bb5ec71;hb=533161b119ddbec3692368d134a250e14cf837c0;hp=5b080fb1a53c7786feea027e6e146d557a2868d8;hpb=ed1ab8e153d452f0e88dbd27300ff8d49605c62e;p=doldaconnect.git diff --git a/daemon/client.c b/daemon/client.c index 5b080fb..6aa1887 100644 --- a/daemon/client.c +++ b/daemon/client.c @@ -18,7 +18,6 @@ */ #include #include -#include #include #include #include @@ -367,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); @@ -500,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); }