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:
Jan (janneke) Nieuwenhuizen 2020-08-02 00:37:37 +02:00
parent fd130a03d1
commit 8e8fa14f03
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 0 additions and 2 deletions

View file

@ -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);

View file

@ -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;