aboutsummaryrefslogtreecommitdiffstats
path: root/src/strings
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-17 00:58:39 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-17 00:58:39 +0200
commit69ed661a488c0e02bf5fee3dc21e6a31a99a8d85 (patch)
treed4172bd2932f8b163b58651dd2f1e14f535304c0 /src/strings
parentm fixes (diff)
downloadslibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.gz
slibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.bz2
slibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.xz
fix errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/strings/index.c8
1 files changed, 4 insertions, 4 deletions
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);
}