summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strncmp.c
diff options
context:
space:
mode:
authorderaadt <>2003-06-11 21:08:16 +0000
committerderaadt <>2003-06-11 21:08:16 +0000
commit05ebc6b11cf74e0e9e901f2e1c26d0d682c57842 (patch)
tree0ab503c1cf313bdf01aa32f8ffd0938a3d19c2a9 /src/lib/libc/string/strncmp.c
parent9b3b34e9713b6e433e3bb19fc1808375d5c69917 (diff)
downloadopenbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.tar.gz
openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.tar.bz2
openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.zip
ansification; pval ok
Diffstat (limited to 'src/lib/libc/string/strncmp.c')
-rw-r--r--src/lib/libc/string/strncmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libc/string/strncmp.c b/src/lib/libc/string/strncmp.c
index dad7198647..82420e215e 100644
--- a/src/lib/libc/string/strncmp.c
+++ b/src/lib/libc/string/strncmp.c
@@ -28,7 +28,7 @@
28 */ 28 */
29 29
30#if defined(LIBC_SCCS) && !defined(lint) 30#if defined(LIBC_SCCS) && !defined(lint)
31static char *rcsid = "$OpenBSD: strncmp.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; 31static char *rcsid = "$OpenBSD: strncmp.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $";
32#endif /* LIBC_SCCS and not lint */ 32#endif /* LIBC_SCCS and not lint */
33 33
34#ifndef _KERNEL 34#ifndef _KERNEL
@@ -38,9 +38,7 @@ static char *rcsid = "$OpenBSD: strncmp.c,v 1.4 2003/06/02 20:18:38 millert Exp
38#endif 38#endif
39 39
40int 40int
41strncmp(s1, s2, n) 41strncmp(const char *s1, const char *s2, size_t n)
42 register const char *s1, *s2;
43 register size_t n;
44{ 42{
45 43
46 if (n == 0) 44 if (n == 0)