mescc: Mes C Library: Bugfix __ungetc_clear.
* lib/m2/mes_open.c (mes_open): Remove __ungetc_init (); * lib/m2/open.c (open): Likewise.
This commit is contained in:
parent
fd130a03d1
commit
8e8fa14f03
|
@ -21,7 +21,6 @@
|
|||
int
|
||||
mes_open (char *file_name, int flags, int mask)
|
||||
{
|
||||
__ungetc_init ();
|
||||
int filedes = open (file_name, flags, mask);
|
||||
if (filedes > 2)
|
||||
__ungetc_clear (filedes);
|
||||
|
|
|
@ -26,7 +26,6 @@ int
|
|||
open (char *file_name, int flags, int mask)
|
||||
{
|
||||
int r = _sys_call3 (SYS_open, file_name, flags, mask);
|
||||
__ungetc_init ();
|
||||
if (r > 2)
|
||||
__ungetc_clear (r);
|
||||
return r;
|
||||
|
|
Loading…
Reference in a new issue