Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian dot huber at embedded-brains dot de>2017-09-13 15:31:01 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2017-09-19 23:35:09 +0300
commit1592a0be0caa7476fccbb1f9ae9310780cad6ef2 (patch)
treed7d76002caab10e630f6e57f662042a62d8eef6c
parent05cfd1aed8b262e82f62acc2de2858d2d2b6679c (diff)
Fix warnings and documentation in strnstr.c
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
-rw-r--r--newlib/libc/string/strnstr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/newlib/libc/string/strnstr.c b/newlib/libc/string/strnstr.c
index ce32d0f73..947355fed 100644
--- a/newlib/libc/string/strnstr.c
+++ b/newlib/libc/string/strnstr.c
@@ -21,17 +21,16 @@ RETURNS
PORTABILITY
-<<strnstr>> is ANSI C.
+<<strnstr>> is a BSD extension.
<<strnstr>> requires no supporting OS subroutines.
QUICKREF
- strnstr ansi pure
+ strnstr pure
*/
-#undef __STRICT_ANSI__
-#include <_ansi.h>
+#define _GNU_SOURCE
#include <string.h>
/*