summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/strncmp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-08-07 00:38:32 +0000
committerderaadt <deraadt@openbsd.org>2004-08-07 00:38:32 +0000
commita26aa41994e8a6961f009870b31f84fec938f9c8 (patch)
treeb69a5bc2e1eeaca538d3783d02cfd53f88cb19db /sys/lib/libkern/strncmp.c
parentsync (diff)
downloadwireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.tar.xz
wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.zip
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/strncmp.c')
-rw-r--r--sys/lib/libkern/strncmp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/lib/libkern/strncmp.c b/sys/lib/libkern/strncmp.c
index 28a15e953ea..78462928dfd 100644
--- a/sys/lib/libkern/strncmp.c
+++ b/sys/lib/libkern/strncmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strncmp.c,v 1.7 2003/06/02 23:28:08 millert Exp $ */
+/* $OpenBSD: strncmp.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -31,7 +31,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strncmp.c 5.6 (Berkeley) 1/26/91";*/
-static char *rcsid = "$OpenBSD: strncmp.c,v 1.7 2003/06/02 23:28:08 millert Exp $";
+static char *rcsid = "$OpenBSD: strncmp.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -42,9 +42,7 @@ static char *rcsid = "$OpenBSD: strncmp.c,v 1.7 2003/06/02 23:28:08 millert Exp
#endif
int
-strncmp(s1, s2, n)
- register const char *s1, *s2;
- register size_t n;
+strncmp(const char *s1, const char *s2, size_t n)
{
if (n == 0)