diff options
author | 2001-07-29 21:15:23 +0000 | |
---|---|---|
committer | 2001-07-29 21:15:23 +0000 | |
commit | 8a2f796d2d6ee9414b22dd2c51d9df522beee22f (patch) | |
tree | 0e5126a606cef7cd7358d02ba5754f3581b18e9f /sys/lib/libkern/strlen.c | |
parent | Clarified -o option in scp.1 OKed by Markus@ (diff) | |
download | wireguard-openbsd-8a2f796d2d6ee9414b22dd2c51d9df522beee22f.tar.xz wireguard-openbsd-8a2f796d2d6ee9414b22dd2c51d9df522beee22f.zip |
Minor style pedentry from ben@arbor.net plus some of my own and sync
libkern and libc versions.
Diffstat (limited to 'sys/lib/libkern/strlen.c')
-rw-r--r-- | sys/lib/libkern/strlen.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/lib/libkern/strlen.c b/sys/lib/libkern/strlen.c index cd0df7747f6..6023b331f4d 100644 --- a/sys/lib/libkern/strlen.c +++ b/sys/lib/libkern/strlen.c @@ -1,8 +1,8 @@ -/* $OpenBSD: strlen.c,v 1.4 1998/06/27 01:21:08 mickey Exp $ */ +/* $OpenBSD: strlen.c,v 1.5 2001/07/29 21:15:23 millert Exp $ */ /*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. + * Copyright (c) 1990, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -34,8 +34,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -/*static char *sccsid = "from: @(#)strlen.c 5.5 (Berkeley) 1/26/91";*/ -static char *rcsid = "$OpenBSD: strlen.c,v 1.4 1998/06/27 01:21:08 mickey Exp $"; +static char *rcsid = "$OpenBSD: strlen.c,v 1.5 2001/07/29 21:15:23 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #if !defined(_KERNEL) && !defined(_STANDALONE) @@ -48,9 +47,10 @@ size_t strlen(str) const char *str; { - register const char *s; + const char *s; - for (s = str; *s; ++s); - return(s - str); + for (s = str; *s; ++s) + ; + return (s - str); } |