aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string
diff options
context:
space:
mode:
authorSebastian Huber <sebastian dot huber at embedded-brains dot de>2017-09-13 14:31:01 +0200
committerYaakov Selkowitz <yselkowi@redhat.com>2017-09-19 15:35:09 -0500
commit1592a0be0caa7476fccbb1f9ae9310780cad6ef2 (patch)
treed7d76002caab10e630f6e57f662042a62d8eef6c /newlib/libc/string
parent05cfd1aed8b262e82f62acc2de2858d2d2b6679c (diff)
downloadnewlib-1592a0be0caa7476fccbb1f9ae9310780cad6ef2.zip
newlib-1592a0be0caa7476fccbb1f9ae9310780cad6ef2.tar.gz
newlib-1592a0be0caa7476fccbb1f9ae9310780cad6ef2.tar.bz2
Fix warnings and documentation in strnstr.c
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/string')
-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 ce32d0f..947355f 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>
/*