summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2003-12-18 07:44:53 +0000
committerjkh <jkh@FreeBSD.org>2003-12-18 07:44:53 +0000
commit4b15405096545428384335a709c884773ff82595 (patch)
treef56a053adf939ab1a6ac83ca6c3935b30509362c /lib/libc
parent732903bb372dae394c980289237fb4237def11c8 (diff)
downloadFreeBSD-src-4b15405096545428384335a709c884773ff82595.zip
FreeBSD-src-4b15405096545428384335a709c884773ff82595.tar.gz
Brucification: Don't initialize in declaration, make sure extra lines
follow declaration section.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/index.c4
-rw-r--r--lib/libc/string/rindex.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/string/index.c b/lib/libc/string/index.c
index fe523be..5d79f4f 100644
--- a/lib/libc/string/index.c
+++ b/lib/libc/string/index.c
@@ -52,7 +52,9 @@ index
#endif
(const char *p, int ch)
{
- char c = ch;
+ char c;
+
+ c = ch;
for (;; ++p) {
if (*p == c)
return ((char *)p);
diff --git a/lib/libc/string/rindex.c b/lib/libc/string/rindex.c
index 9deeb1f..641c00f 100644
--- a/lib/libc/string/rindex.c
+++ b/lib/libc/string/rindex.c
@@ -53,8 +53,9 @@ rindex
(const char *p, int ch)
{
char *save;
- char c = ch;
+ char c;
+ c = ch;
for (save = NULL;; ++p) {
if (*p == c)
save = (char *)p;
OpenPOWER on IntegriCloud