diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-24 13:34:26 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-24 13:34:26 +0000 |
commit | a46a01edbf5d535efc6d5f9db198e9358983c6dd (patch) | |
tree | edc865ed616d72e001393462ccc52810b1caa500 /missing | |
parent | 415365974bf3b18e67f24c0ea7d0cb20c06baa0e (diff) | |
download | ruby-a46a01edbf5d535efc6d5f9db198e9358983c6dd.tar.gz ruby-a46a01edbf5d535efc6d5f9db198e9358983c6dd.tar.xz ruby-a46a01edbf5d535efc6d5f9db198e9358983c6dd.zip |
banish some warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r-- | missing/vsnprintf.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c index 4d0cb3413..3a922b721 100644 --- a/missing/vsnprintf.c +++ b/missing/vsnprintf.c @@ -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. |