mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Changed how error conditions raised by dos.library file I/O functions
are detected. - Modified function return values of 0 and -1 to use macros like OK, ERROR/SEEK_ERROR instead, to better convey what the purpose of these values is. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14922 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_flushiobwritebuffer.c,v 1.6 2005-02-21 10:21:48 obarthel Exp $
|
||||
* $Id: stdio_flushiobwritebuffer.c,v 1.7 2005-04-24 08:46:37 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -45,7 +45,7 @@
|
||||
int
|
||||
__flush_iob_write_buffer(struct iob * file)
|
||||
{
|
||||
int result = 0;
|
||||
int result = OK;
|
||||
|
||||
ENTER();
|
||||
|
||||
@ -75,11 +75,11 @@ __flush_iob_write_buffer(struct iob * file)
|
||||
|
||||
assert( file->iob_Action != NULL );
|
||||
|
||||
if((*file->iob_Action)(file,&fam) < 0)
|
||||
if((*file->iob_Action)(file,&fam) == EOF)
|
||||
{
|
||||
SHOWMSG("that didn't work");
|
||||
|
||||
result = -1;
|
||||
result = ERROR;
|
||||
|
||||
SET_FLAG(file->iob_Flags,IOBF_ERROR);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user