summaryrefslogtreecommitdiffstats
path: root/usr.bin/killall/killall.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-08-27 01:17:11 +0000
committerpeter <peter@FreeBSD.org>2000-08-27 01:17:11 +0000
commitb4ced624462c0b03e2c279c34c489f9554727dda (patch)
tree365ea393062f3d383b652a4c5eadfbdf31f02062 /usr.bin/killall/killall.c
parenteb32ed6b03cff60e20445911a7561f404b74f295 (diff)
downloadFreeBSD-src-b4ced624462c0b03e2c279c34c489f9554727dda.zip
FreeBSD-src-b4ced624462c0b03e2c279c34c489f9554727dda.tar.gz
Sigh, today is not my day. Convert a verbose while() .. loop into a for()
loop. Submitted by: billf
Diffstat (limited to 'usr.bin/killall/killall.c')
-rw-r--r--usr.bin/killall/killall.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c
index 88c3f28..761f189 100644
--- a/usr.bin/killall/killall.c
+++ b/usr.bin/killall/killall.c
@@ -63,11 +63,8 @@ upper(const char *str)
strncpy(buf, str, sizeof(buf));
buf[sizeof(buf) - 1] = '\0';
- s = buf;
- while (*s) {
+ for (s = buf; *s; s++)
*s = toupper(*s);
- s++;
- }
return buf;
}
OpenPOWER on IntegriCloud