summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strpbrk.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-11 21:08:16 +0000
committerderaadt <deraadt@openbsd.org>2003-06-11 21:08:16 +0000
commit86b54bb2dc6aec91522eca6d443b842bd4bd9342 (patch)
tree0e00cbd0851694ae7a727106329ae79a5c5bec59 /lib/libc/string/strpbrk.c
parentoops (diff)
downloadwireguard-openbsd-86b54bb2dc6aec91522eca6d443b842bd4bd9342.tar.xz
wireguard-openbsd-86b54bb2dc6aec91522eca6d443b842bd4bd9342.zip
ansification; pval ok
Diffstat (limited to 'lib/libc/string/strpbrk.c')
-rw-r--r--lib/libc/string/strpbrk.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/string/strpbrk.c b/lib/libc/string/strpbrk.c
index 520e20de142..024c42bdc3e 100644
--- a/lib/libc/string/strpbrk.c
+++ b/lib/libc/string/strpbrk.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strpbrk.c,v 1.3 2003/06/02 20:18:38 millert Exp $";
+static char *rcsid = "$OpenBSD: strpbrk.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -37,11 +37,10 @@ static char *rcsid = "$OpenBSD: strpbrk.c,v 1.3 2003/06/02 20:18:38 millert Exp
* Find the first occurrence in s1 of a character in s2 (excluding NUL).
*/
char *
-strpbrk(s1, s2)
- register const char *s1, *s2;
+strpbrk(const char *s1, const char *s2)
{
- register const char *scanp;
- register int c, sc;
+ const char *scanp;
+ int c, sc;
while ((c = *s1++) != 0) {
for (scanp = s2; (sc = *scanp++) != 0;)