summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/strlen.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-08-11 06:23:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-08-11 06:23:10 +0000
commit16824dd3bbb4d43b141d300c76afbdd0c30fa7b9 (patch)
tree08f2b84878ea46e749b47e3b2953507245ad5384 /sys/lib/libsa/strlen.c
parent678b21869f24e6ddc3a341fad1a87c353c5464ca (diff)
ansification and knf and protos
Diffstat (limited to 'sys/lib/libsa/strlen.c')
-rw-r--r--sys/lib/libsa/strlen.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/lib/libsa/strlen.c b/sys/lib/libsa/strlen.c
index 6be1dd2299a..3c37dd54d15 100644
--- a/sys/lib/libsa/strlen.c
+++ b/sys/lib/libsa/strlen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strlen.c,v 1.3 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: strlen.c,v 1.4 2003/08/11 06:23:09 deraadt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -36,12 +36,12 @@
#include "stand.h"
size_t
-strlen(str)
- const char *str;
+strlen(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);
}