From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:23 +0000 (-0700) Subject: Run Nindent on com32/lib/fwrite.c X-Git-Tag: syslinux-3.83-pre2~329 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a48fef655e97dc1e152f64df9d882e6726d86b9;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/lib/fwrite.c Automatically reformat com32/lib/fwrite.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- diff --git a/com32/lib/fwrite.c b/com32/lib/fwrite.c index fd7dab7..b5c1d5d 100644 --- a/com32/lib/fwrite.c +++ b/com32/lib/fwrite.c @@ -6,27 +6,27 @@ #include #include -size_t _fwrite(const void *buf, size_t count, FILE *f) +size_t _fwrite(const void *buf, size_t count, FILE * f) { - size_t bytes = 0; - ssize_t rv; - const char *p = buf; + size_t bytes = 0; + ssize_t rv; + const char *p = buf; - while ( count ) { - rv = write(fileno(f), p, count); - if ( rv == -1 ) { - if ( errno == EINTR || errno == EAGAIN ) - continue; - else - break; - } else if ( rv == 0 ) { - break; - } + while (count) { + rv = write(fileno(f), p, count); + if (rv == -1) { + if (errno == EINTR || errno == EAGAIN) + continue; + else + break; + } else if (rv == 0) { + break; + } - p += rv; - bytes += rv; - count -= rv; - } + p += rv; + bytes += rv; + count -= rv; + } - return bytes; + return bytes; }