From: Jonathan McDowell Date: Sat, 23 Apr 2011 23:05:44 +0000 (-0700) Subject: Change fd_write to use fwrite instead of fputc X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/c5c516adbe4ddcf8d57e7f21317125422e0f6ed8 Change fd_write to use fwrite instead of fputc I have no idea why I had a loop around fputc instead of just using fwrite. --- diff --git a/sendsync.c b/sendsync.c index ace6b0d..1d41d4d 100644 --- a/sendsync.c +++ b/sendsync.c @@ -21,11 +21,8 @@ int fd_putchar(void *ctx, size_t count, void *c) { - int i; + fwrite(c, sizeof(char), count, ctx); - for (i = 0; i < count; i++) { - fputc(((char *) c )[i], ctx); - } return 0; }