From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51595 invoked by alias); 19 Sep 2017 20:36:53 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 51552 invoked by uid 9642); 19 Sep 2017 20:36:53 -0000 Date: Tue, 19 Sep 2017 20:36:00 -0000 Message-ID: <20170919203653.51549.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Yaakov Selkowitz To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix warnings and documentation in strnstr.c X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 05cfd1aed8b262e82f62acc2de2858d2d2b6679c X-Git-Newrev: 1592a0be0caa7476fccbb1f9ae9310780cad6ef2 X-SW-Source: 2017-q3/txt/msg00070.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1592a0be0caa7476fccbb1f9ae9310780cad6ef2 commit 1592a0be0caa7476fccbb1f9ae9310780cad6ef2 Author: Sebastian Huber Date: Wed Sep 13 14:31:01 2017 +0200 Fix warnings and documentation in strnstr.c Signed-off-by: Sebastian Huber Diff: --- newlib/libc/string/strnstr.c | 7 +++---- 1 file 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 -<> is ANSI C. +<> is a BSD extension. <> requires no supporting OS subroutines. QUICKREF - strnstr ansi pure + strnstr pure */ -#undef __STRICT_ANSI__ -#include <_ansi.h> +#define _GNU_SOURCE #include /*