aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/siscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/siscanf.c')
-rw-r--r--newlib/libc/stdio/siscanf.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/newlib/libc/stdio/siscanf.c b/newlib/libc/stdio/siscanf.c
index cbf434c..a6a8126 100644
--- a/newlib/libc/stdio/siscanf.c
+++ b/newlib/libc/stdio/siscanf.c
@@ -113,18 +113,6 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#endif
#include "local.h"
-/* | ARGSUSED */
-/*SUPPRESS 590*/
-static _READ_WRITE_RETURN_TYPE
-_DEFUN(eofread, (ptr, cookie, buf, len),
- struct _reent *ptr _AND
- _PTR cookie _AND
- char *buf _AND
- int len)
-{
- return 0;
-}
-
#ifndef _REENT_ONLY
#ifdef _HAVE_STDC
@@ -147,7 +135,7 @@ siscanf(str, fmt, va_alist)
f._flags = __SRD | __SSTR;
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._r = strlen (str);
- f._read = eofread;
+ f._read = __seofread;
f._ub._base = NULL;
f._lb._base = NULL;
f._file = -1; /* No file. */
@@ -185,7 +173,7 @@ _siscanf_r(ptr, str, fmt, va_alist)
f._flags = __SRD | __SSTR;
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._r = strlen (str);
- f._read = eofread;
+ f._read = __seofread;
f._ub._base = NULL;
f._lb._base = NULL;
f._file = -1; /* No file. */