summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strnlen.c
diff options
context:
space:
mode:
authorchl <>2010-05-21 06:57:45 +0000
committerchl <>2010-05-21 06:57:45 +0000
commitcfddca0ab5299716ae40d786bcfc076cc58f8e26 (patch)
treeb95394ed8d5535d6186712fafcfb377a90bc7670 /src/lib/libc/string/strnlen.c
parent6bcddc9ccd1f9f77ede92dbc75898b9ffc99c2bb (diff)
downloadopenbsd-cfddca0ab5299716ae40d786bcfc076cc58f8e26.tar.gz
openbsd-cfddca0ab5299716ae40d786bcfc076cc58f8e26.tar.bz2
openbsd-cfddca0ab5299716ae40d786bcfc076cc58f8e26.zip
remove unused variable.
ok millert@ tedu@
Diffstat (limited to 'src/lib/libc/string/strnlen.c')
-rw-r--r--src/lib/libc/string/strnlen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/string/strnlen.c b/src/lib/libc/string/strnlen.c
index 5c99994744..0c6df381fc 100644
--- a/src/lib/libc/string/strnlen.c
+++ b/src/lib/libc/string/strnlen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strnlen.c,v 1.1 2010/05/18 22:24:55 tedu Exp $ */ 1/* $OpenBSD: strnlen.c,v 1.2 2010/05/21 06:57:45 chl Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> 4 * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -24,7 +24,6 @@ size_t
24strnlen(const char *str, size_t maxlen) 24strnlen(const char *str, size_t maxlen)
25{ 25{
26 const char *cp, *ep; 26 const char *cp, *ep;
27 size_t len;
28 27
29 ep = str + maxlen; 28 ep = str + maxlen;
30 for (cp = str; cp < ep && *cp != '\0'; cp++) 29 for (cp = str; cp < ep && *cp != '\0'; cp++)