From bfc27bae1acb55886146a7c67f85cf752b5d532c Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Tue, 30 Apr 2002 18:23:40 +0000 Subject: * Various formatting and whitespace changes. --- newlib/libc/stdio/fread.c | 28 ++++++++++++++-------------- newlib/libc/stdio/fvwrite.c | 22 +++++++++++----------- newlib/libc/stdio/mktemp.c | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) (limited to 'newlib/libc/stdio') diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c index c4c66b4d6..38f791b6d 100644 --- a/newlib/libc/stdio/fread.c +++ b/newlib/libc/stdio/fread.c @@ -62,10 +62,10 @@ Supporting OS subroutines required: <>, <>, <>, #ifdef __SCLE static size_t _DEFUN (crlf, (fp, buf, count, eof), - FILE * fp _AND - char * buf _AND - size_t count _AND - int eof) + FILE * fp _AND + char * buf _AND + size_t count _AND + int eof) { int newcount = 0, r; char *s, *d, *e; @@ -77,19 +77,19 @@ _DEFUN (crlf, (fp, buf, count, eof), for (s=d=buf; s_flags & __SCLE) + if (fp->_flags & __SCLE) return crlf(fp, buf, total-resid, 1) / size; #endif return (total - resid) / size; diff --git a/newlib/libc/stdio/fvwrite.c b/newlib/libc/stdio/fvwrite.c index 8e7d316fb..62d0ba072 100644 --- a/newlib/libc/stdio/fvwrite.c +++ b/newlib/libc/stdio/fvwrite.c @@ -67,17 +67,17 @@ __sfvwrite (fp, uio) if (fp->_flags & __SCLE) /* text mode */ { do - { - GETIOV (;); - while (len > 0) - { - if (putc(*p, fp) == EOF) - return EOF; - p++; - len--; - uio->uio_resid--; - } - } + { + GETIOV (;); + while (len > 0) + { + if (putc(*p, fp) == EOF) + return EOF; + p++; + len--; + uio->uio_resid--; + } + } while (uio->uio_resid > 0); return 0; } diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c index 86159089b..f3eaa09ce 100644 --- a/newlib/libc/stdio/mktemp.c +++ b/newlib/libc/stdio/mktemp.c @@ -1,6 +1,6 @@ /* This is file MKTEMP.C */ /* This file may have been modified by DJ Delorie (Jan 1991). If so, -** these modifications are Copyright (C) 1991 DJ Delorie +** these modifications are Copyright (C) 1991 DJ Delorie. */ /* -- cgit v1.2.3