summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcschr.c
diff options
context:
space:
mode:
authorguenther <>2015-10-01 02:32:07 +0000
committerguenther <>2015-10-01 02:32:07 +0000
commit17fadf661d157ba2a756646f71fd03369db612f0 (patch)
tree6a902f9af0ce8df1ba9e863ca22796acaafb59d0 /src/lib/libc/string/wcschr.c
parent7d6f4a12ac5b7dc7f80591c2e74ac77a6f543194 (diff)
downloadopenbsd-17fadf661d157ba2a756646f71fd03369db612f0.tar.gz
openbsd-17fadf661d157ba2a756646f71fd03369db612f0.tar.bz2
openbsd-17fadf661d157ba2a756646f71fd03369db612f0.zip
Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In one
case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
Diffstat (limited to 'src/lib/libc/string/wcschr.c')
-rw-r--r--src/lib/libc/string/wcschr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/string/wcschr.c b/src/lib/libc/string/wcschr.c
index 231c7605a2..709d4797bb 100644
--- a/src/lib/libc/string/wcschr.c
+++ b/src/lib/libc/string/wcschr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: wcschr.c,v 1.5 2015/09/12 16:23:14 guenther Exp $ */ 1/* $OpenBSD: wcschr.c,v 1.6 2015/10/01 02:32:07 guenther Exp $ */
2/* $NetBSD: wcschr.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ 2/* $NetBSD: wcschr.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */
3 3
4/*- 4/*-
@@ -39,7 +39,6 @@ wcschr(const wchar_t *s, wchar_t c)
39 p = s; 39 p = s;
40 for (;;) { 40 for (;;) {
41 if (*p == c) { 41 if (*p == c) {
42 /* LINTED interface specification */
43 return (wchar_t *)p; 42 return (wchar_t *)p;
44 } 43 }
45 if (!*p) 44 if (!*p)