From c5c516adbe4ddcf8d57e7f21317125422e0f6ed8 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sat, 23 Apr 2011 16:05:44 -0700 Subject: [PATCH] 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. --- sendsync.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } -- 2.39.5