From 69ed661a488c0e02bf5fee3dc21e6a31a99a8d85 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 17 Oct 2015 00:58:39 +0200 Subject: fix errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/strings/index.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/strings') diff --git a/src/strings/index.c b/src/strings/index.c index 82126f5..eb7e321 100644 --- a/src/strings/index.c +++ b/src/strings/index.c @@ -25,9 +25,9 @@ * * This is a deprecated BSD extension. */ -char* index(const char* string, int c) +char* (index)(const char* string, int c) { - return strchr(string, c); + return (strchr)(string, c); } @@ -36,8 +36,8 @@ char* index(const char* string, int c) * * This is a deprecated BSD extension. */ -char* rindex(const char* string, int c) +char* (rindex)(const char* string, int c) { - return strrchr(string, c); + return (strrchr)(string, c); } -- cgit v1.2.3-70-g09d2