X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=sendsync.c;fp=sendsync.c;h=429b8f712998b3012c720687bcc74c74608d0e44;hp=e81da7d09b105646fbe8a485ca5a5b42d41da982;hb=35e886f23fde338387c8e2a3a74c9251f7735c3b;hpb=db700de99a954f1d88d15b28b386bc5b5e694df7 diff --git a/sendsync.c b/sendsync.c index e81da7d..429b8f7 100644 --- a/sendsync.c +++ b/sendsync.c @@ -29,11 +29,9 @@ #include "parsekey.h" #include "sendsync.h" -int fd_putchar(void *ctx, size_t count, void *c) +size_t fd_putchar(void *ctx, size_t count, void *c) { - fwrite(c, sizeof(char), count, ctx); - - return 0; + return fwrite(c, sizeof(char), count, ctx); } /**