summaryrefslogtreecommitdiff
path: root/src/libopts/compat/strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libopts/compat/strchr.c')
-rw-r--r--src/libopts/compat/strchr.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libopts/compat/strchr.c b/src/libopts/compat/strchr.c
index 413f999ff9..0def700f86 100644
--- a/src/libopts/compat/strchr.c
+++ b/src/libopts/compat/strchr.c
@@ -24,8 +24,14 @@
SVID 3, POSIX, BSD 4.3, ISO 9899
*/
-char*
-strchr( char const *s, int c)
+static char *
+strchr(char const *s, int c);
+
+static char *
+strrchr(char const *s, int c);
+
+static char *
+strchr(char const *s, int c)
{
do {
if ((unsigned)*s == (unsigned)c)
@@ -36,8 +42,8 @@ strchr( char const *s, int c)
return NULL;
}
-char*
-strrchr( char const *s, int c)
+static char *
+strrchr(char const *s, int c)
{
char const *e = s + strlen(s);