From 493d0cc28b0d0fa1dc571ffc876b554376ccdd47 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 1 Jun 2016 19:59:03 +0200 Subject: remove MJN only debug messages --- libc/stdio/fgets.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libc/stdio/fgets.c') diff --git a/libc/stdio/fgets.c b/libc/stdio/fgets.c index bc710c764..0a6d31e5c 100644 --- a/libc/stdio/fgets.c +++ b/libc/stdio/fgets.c @@ -19,9 +19,6 @@ char *fgets_unlocked(char *__restrict s, int n, __STDIO_STREAM_VALIDATE(stream); -#ifdef __UCLIBC_MJN3_ONLY__ -#warning CONSIDER: What should fgets do if n <= 0? -#endif /* __UCLIBC_MJN3_ONLY__ */ /* Should we assert here? Or set errno? Or just fail... */ if (n <= 0) { /* __set_errno(EINVAL); */ @@ -48,9 +45,6 @@ char *fgets_unlocked(char *__restrict s, int n, } } -#ifdef __UCLIBC_MJN3_ONLY__ -#warning CONSIDER: If n==1 and not at EOF, should fgets return an empty string? -#endif /* __UCLIBC_MJN3_ONLY__ */ if (p > s) { *p = 0; return s; -- cgit v1.2.3