From fac29c0e7b1c8b438c5c900069a9637c66020cad Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 17 May 2020 19:28:28 +0200 Subject: [PATCH] mescc: Mes C Library: Prepare for M2-Planet: fdungetc. * lib/mes/fdungetc.c: Rewrite C-constructs not supported by M2-Planet. --- lib/mes/fdungetc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mes/fdungetc.c b/lib/mes/fdungetc.c index 2179aeb0..8376c61c 100644 --- a/lib/mes/fdungetc.c +++ b/lib/mes/fdungetc.c @@ -19,7 +19,6 @@ */ #include -#include int fdungetc (int c, int fd) @@ -31,7 +30,7 @@ fdungetc (int c, int fd) eputs (" ***MES C LIB*** fdungetc ungetc buffer overflow fd="); eputs (itoa (fd)); eputs ("\n"); - assert (0); + assert_msg (0, "0"); } __ungetc_set (fd, c); return c;