diff options
author | Sebastian Huber <sebastian dot huber at embedded-brains dot de> | 2017-09-13 14:31:01 +0200 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-09-19 15:35:09 -0500 |
commit | 1592a0be0caa7476fccbb1f9ae9310780cad6ef2 (patch) | |
tree | d7d76002caab10e630f6e57f662042a62d8eef6c /newlib/libc/string | |
parent | 05cfd1aed8b262e82f62acc2de2858d2d2b6679c (diff) | |
download | newlib-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.c | 7 |
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> /* |