aboutsummaryrefslogtreecommitdiffstats
path: root/src/strings/index.c
diff options
context:
space:
mode:
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);
}