summaryrefslogtreecommitdiff
path: root/libc/stdio/fgets.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-01 19:59:03 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-01 19:59:03 +0200
commit493d0cc28b0d0fa1dc571ffc876b554376ccdd47 (patch)
tree3ec057a08c2aad5cf43f55ca94e3b243e409f698 /libc/stdio/fgets.c
parentc526740e06e1f7cc0a4747e319c18cde93523482 (diff)
remove MJN only debug messages
Diffstat (limited to 'libc/stdio/fgets.c')
-rw-r--r--libc/stdio/fgets.c6
1 files changed, 0 insertions, 6 deletions
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;