diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/string/strchr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/string/strchr.c b/src/lib/libc/string/strchr.c index b396b45b3b..8bfa7ac3aa 100644 --- a/src/lib/libc/string/strchr.c +++ b/src/lib/libc/string/strchr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strchr.c,v 1.3 2015/08/31 02:53:57 guenther Exp $ */ | 1 | /* $OpenBSD: strchr.c,v 1.4 2018/10/01 06:37:37 martijn Exp $ */ |
| 2 | /*- | 2 | /*- |
| 3 | * Copyright (c) 1990 The Regents of the University of California. | 3 | * Copyright (c) 1990 The Regents of the University of California. |
| 4 | * All rights reserved. | 4 | * All rights reserved. |
| @@ -36,7 +36,7 @@ char * | |||
| 36 | strchr(const char *p, int ch) | 36 | strchr(const char *p, int ch) |
| 37 | { | 37 | { |
| 38 | for (;; ++p) { | 38 | for (;; ++p) { |
| 39 | if (*p == ch) | 39 | if (*p == (char) ch) |
| 40 | return((char *)p); | 40 | return((char *)p); |
| 41 | if (!*p) | 41 | if (!*p) |
| 42 | return((char *)NULL); | 42 | return((char *)NULL); |
