mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- The lseek() function return code was not consistently treated as the
then current file position. Fixed. - Numerous house-keeping changes. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14836 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_vsnprintf_hook_entry.c,v 1.5 2005-02-20 13:19:40 obarthel Exp $
|
||||
* $Id: stdio_vsnprintf_hook_entry.c,v 1.6 2005-02-20 15:46:52 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -49,13 +49,12 @@ __vsnprintf_hook_entry(
|
||||
struct file_action_message * fam)
|
||||
{
|
||||
int result = -1;
|
||||
int error = OK;
|
||||
|
||||
assert( fam != NULL && string_iob != NULL );
|
||||
|
||||
if(fam->fam_Action != file_action_write)
|
||||
{
|
||||
error = EBADF;
|
||||
fam->fam_Error = EBADF;
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -83,7 +82,5 @@ __vsnprintf_hook_entry(
|
||||
|
||||
out:
|
||||
|
||||
fam->fam_Error = error;
|
||||
|
||||
return(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user