Remove superfluous parameter from std()
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
		| @@ -40,11 +40,10 @@ _NOINLINE_STATIC _VOID | |||||||
| #else | #else | ||||||
| static _VOID | static _VOID | ||||||
| #endif | #endif | ||||||
| _DEFUN(std, (ptr, flags, file, data), | _DEFUN(std, (ptr, flags, file), | ||||||
|             FILE *ptr _AND |             FILE *ptr _AND | ||||||
|             int flags _AND |             int flags _AND | ||||||
|             int file  _AND |             int file) | ||||||
|             struct _reent *data) |  | ||||||
| { | { | ||||||
|   ptr->_p = 0; |   ptr->_p = 0; | ||||||
|   ptr->_r = 0; |   ptr->_r = 0; | ||||||
| @@ -236,7 +235,7 @@ _DEFUN(__sinit, (s), | |||||||
|   s->_stderr = __sfp(s); |   s->_stderr = __sfp(s); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   std (s->_stdin,  __SRD, 0, s); |   std (s->_stdin,  __SRD, 0); | ||||||
|  |  | ||||||
|   /* On platforms that have true file system I/O, we can verify |   /* On platforms that have true file system I/O, we can verify | ||||||
|      whether stdout is an interactive terminal or not, as part of |      whether stdout is an interactive terminal or not, as part of | ||||||
| @@ -245,14 +244,14 @@ _DEFUN(__sinit, (s), | |||||||
|      requires both stdin and stdout to be line-buffered, but tradition |      requires both stdin and stdout to be line-buffered, but tradition | ||||||
|      leaves stdin alone on systems without fcntl.  */ |      leaves stdin alone on systems without fcntl.  */ | ||||||
| #ifdef HAVE_FCNTL | #ifdef HAVE_FCNTL | ||||||
|   std (s->_stdout, __SWR, 1, s); |   std (s->_stdout, __SWR, 1); | ||||||
| #else | #else | ||||||
|   std (s->_stdout, __SWR | __SLBF, 1, s); |   std (s->_stdout, __SWR | __SLBF, 1); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   /* POSIX requires stderr to be opened for reading and writing, even |   /* POSIX requires stderr to be opened for reading and writing, even | ||||||
|      when the underlying fd 2 is write-only.  */ |      when the underlying fd 2 is write-only.  */ | ||||||
|   std (s->_stderr, __SRW | __SNBF, 2, s); |   std (s->_stderr, __SRW | __SNBF, 2); | ||||||
|  |  | ||||||
|   s->__sdidinit = 1; |   s->__sdidinit = 1; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user