mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Cosmetic changes for (hopefully) better readability.
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14837 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_fputs.c,v 1.3 2005-02-03 16:56:16 obarthel Exp $
|
||||
* $Id: stdio_fputs.c,v 1.4 2005-02-21 10:21:49 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@@ -79,7 +79,7 @@ fputs(const char *s, FILE *stream)
|
||||
if(buffer_mode == IOBF_BUFFER_MODE_NONE)
|
||||
buffer_mode = IOBF_BUFFER_MODE_LINE;
|
||||
|
||||
if(__fputc_check(stream) != OK)
|
||||
if(__fputc_check(stream) < 0)
|
||||
goto out;
|
||||
|
||||
while((c = (*s++)) != '\0')
|
||||
@@ -88,7 +88,7 @@ fputs(const char *s, FILE *stream)
|
||||
goto out;
|
||||
}
|
||||
|
||||
result = OK;
|
||||
result = 0;
|
||||
|
||||
out:
|
||||
|
||||
@@ -96,7 +96,7 @@ fputs(const char *s, FILE *stream)
|
||||
may have buffered data around, queued to be printed right now.
|
||||
This is intended to improve performance as it takes more effort
|
||||
to write a single character to a file than to write a bunch. */
|
||||
if(result == OK && (file->iob_Flags & IOBF_BUFFER_MODE) == IOBF_BUFFER_MODE_NONE)
|
||||
if(result == 0 && (file->iob_Flags & IOBF_BUFFER_MODE) == IOBF_BUFFER_MODE_NONE)
|
||||
{
|
||||
if(__iob_write_buffer_is_valid(file) && __flush_iob_write_buffer(file) < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user