diff options
| author | guenther <> | 2015-10-01 02:32:07 +0000 |
|---|---|---|
| committer | guenther <> | 2015-10-01 02:32:07 +0000 |
| commit | aed599ac4549b88be4bdafdecb43f3a21971358e (patch) | |
| tree | 6a902f9af0ce8df1ba9e863ca22796acaafb59d0 /src/lib/libc/string/wmemchr.c | |
| parent | 13c35ef70579a16fe44d3c4652f203fb9d955733 (diff) | |
| download | openbsd-aed599ac4549b88be4bdafdecb43f3a21971358e.tar.gz openbsd-aed599ac4549b88be4bdafdecb43f3a21971358e.tar.bz2 openbsd-aed599ac4549b88be4bdafdecb43f3a21971358e.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 '')
| -rw-r--r-- | src/lib/libc/string/wmemchr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/string/wmemchr.c b/src/lib/libc/string/wmemchr.c index 55fb76a5e6..556a0b35cc 100644 --- a/src/lib/libc/string/wmemchr.c +++ b/src/lib/libc/string/wmemchr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: wmemchr.c,v 1.4 2015/09/12 16:23:14 guenther Exp $ */ | 1 | /* $OpenBSD: wmemchr.c,v 1.5 2015/10/01 02:32:07 guenther Exp $ */ |
| 2 | /* $NetBSD: wmemchr.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wmemchr.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
| 3 | 3 | ||
| 4 | /*- | 4 | /*- |
| @@ -38,7 +38,6 @@ wmemchr(const wchar_t *s, wchar_t c, size_t n) | |||
| 38 | 38 | ||
| 39 | for (i = 0; i < n; i++) { | 39 | for (i = 0; i < n; i++) { |
| 40 | if (*s == c) { | 40 | if (*s == c) { |
| 41 | /* LINTED const castaway */ | ||
| 42 | return (wchar_t *)s; | 41 | return (wchar_t *)s; |
| 43 | } | 42 | } |
| 44 | s++; | 43 | s++; |
