mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
banish some warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d277603d5e
commit
0c65f66757
1 changed files with 3 additions and 5 deletions
|
@ -220,13 +220,14 @@ struct __suio {
|
|||
int uio_resid;
|
||||
};
|
||||
|
||||
#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_SNPRINTF)
|
||||
/*
|
||||
* Write some memory regions. Return zero on success, EOF on error.
|
||||
*
|
||||
* This routine is large and unsightly, but most of the ugliness due
|
||||
* to the three different kinds of output buffering is handled here.
|
||||
*/
|
||||
static BSD__sfvwrite(fp, uio)
|
||||
static int BSD__sfvwrite(fp, uio)
|
||||
register FILE *fp;
|
||||
register struct __suio *uio;
|
||||
{
|
||||
|
@ -293,11 +294,8 @@ static BSD__sfvwrite(fp, uio)
|
|||
*/
|
||||
}
|
||||
return (0);
|
||||
|
||||
err:
|
||||
fp->_flags |= __SERR;
|
||||
return (EOF);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Actual printf innards.
|
||||
|
|
Loading…
Reference in a new issue