summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strnlen.c
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2010-05-21 06:57:45 +0000
committerchl <chl@openbsd.org>2010-05-21 06:57:45 +0000
commit40e1fd29b67e286fb417ecd04040818247bd3c2a (patch)
tree7af281f3dafa0e116b0970f9eeb623bcf8ddd372 /lib/libc/string/strnlen.c
parentcolon() returns char*, so s/return (0)/return NULL/ (diff)
downloadwireguard-openbsd-40e1fd29b67e286fb417ecd04040818247bd3c2a.tar.xz
wireguard-openbsd-40e1fd29b67e286fb417ecd04040818247bd3c2a.zip
remove unused variable.
ok millert@ tedu@
Diffstat (limited to 'lib/libc/string/strnlen.c')
-rw-r--r--lib/libc/string/strnlen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/string/strnlen.c b/lib/libc/string/strnlen.c
index 5c999947444..0c6df381fc7 100644
--- a/lib/libc/string/strnlen.c
+++ b/lib/libc/string/strnlen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strnlen.c,v 1.1 2010/05/18 22:24:55 tedu Exp $ */
+/* $OpenBSD: strnlen.c,v 1.2 2010/05/21 06:57:45 chl Exp $ */
/*
* Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -24,7 +24,6 @@ size_t
strnlen(const char *str, size_t maxlen)
{
const char *cp, *ep;
- size_t len;
ep = str + maxlen;
for (cp = str; cp < ep && *cp != '\0'; cp++)