]> the.earth.li Git - onak.git/blobdiff - sendsync.c
Switch charfuncs to returning number of read/written characters
[onak.git] / sendsync.c
index e81da7d09b105646fbe8a485ca5a5b42d41da982..429b8f712998b3012c720687bcc74c74608d0e44 100644 (file)
 #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);
 }
 
 /**