summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strcasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strcasecmp.c')
-rw-r--r--src/lib/libc/string/strcasecmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/string/strcasecmp.c b/src/lib/libc/string/strcasecmp.c
index 2be09136c0..edbd638722 100644
--- a/src/lib/libc/string/strcasecmp.c
+++ b/src/lib/libc/string/strcasecmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strcasecmp.c,v 1.6 2005/08/08 08:05:37 espie Exp $ */ 1/* $OpenBSD: strcasecmp.c,v 1.7 2015/08/31 02:53:57 guenther Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1987, 1993 4 * Copyright (c) 1987, 1993
@@ -85,6 +85,7 @@ strcasecmp(const char *s1, const char *s2)
85 return (0); 85 return (0);
86 return (cm[*us1] - cm[*--us2]); 86 return (cm[*us1] - cm[*--us2]);
87} 87}
88DEF_WEAK(strcasecmp);
88 89
89int 90int
90strncasecmp(const char *s1, const char *s2, size_t n) 91strncasecmp(const char *s1, const char *s2, size_t n)
@@ -103,3 +104,4 @@ strncasecmp(const char *s1, const char *s2, size_t n)
103 } 104 }
104 return (0); 105 return (0);
105} 106}
107DEF_WEAK(strncasecmp);