Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2002-04-30 22:23:40 +0400
committerThomas Fitzsimmons <fitzsim@redhat.com>2002-04-30 22:23:40 +0400
commitbfc27bae1acb55886146a7c67f85cf752b5d532c (patch)
treeb50cd33ffa95c856e6d7d1e6bc506acc643e8f7e /newlib/libc/stdio
parent1bf83a86f6487859997dd2161a408df6be9f032a (diff)
* Various formatting and whitespace changes.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/fread.c28
-rw-r--r--newlib/libc/stdio/fvwrite.c22
-rw-r--r--newlib/libc/stdio/mktemp.c2
3 files changed, 26 insertions, 26 deletions
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: <<close>>, <<fstat>>, <<isatty>>,
#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<e-1; s++)
{
if (*s == '\r' && s[1] == '\n')
- s++;
+ s++;
*d++ = *s;
}
if (s < e)
{
if (*s == '\r')
- {
- int c = __sgetc_raw(fp);
- if (c == '\n')
- *s = '\n';
- else
- ungetc(c, fp);
- }
+ {
+ int c = __sgetc_raw(fp);
+ if (c == '\n')
+ *s = '\n';
+ else
+ ungetc(c, fp);
+ }
*d++ = *s++;
}
@@ -98,7 +98,7 @@ _DEFUN (crlf, (fp, buf, count, eof),
{
r = getc(fp);
if (r == EOF)
- return count - (e-d);
+ return count - (e-d);
*d++ = r;
}
@@ -138,7 +138,7 @@ _DEFUN (fread, (buf, size, count, fp),
{
/* no more input: return partial result */
#ifdef __SCLE
- if (fp->_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.
*/
/*