public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix warnings and documentation in strnstr.c Date: Tue, 19 Sep 2017 20:36:00 -0000 [thread overview] Message-ID: <20170919203653.51549.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1592a0be0caa7476fccbb1f9ae9310780cad6ef2 commit 1592a0be0caa7476fccbb1f9ae9310780cad6ef2 Author: Sebastian Huber <sebastian dot huber at embedded-brains dot de> Date: Wed Sep 13 14:31:01 2017 +0200 Fix warnings and documentation in strnstr.c Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de> 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 -<<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> /*
reply other threads:[~2017-09-19 20:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170919203653.51549.qmail@sourceware.org \ --to=yselkowitz@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).