aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-08-27 01:17:11 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-08-27 01:17:11 +0000
commita03884671d70e87bb6c539060c7ba0c4487be075 (patch)
treed851486ff917a971a1d01b64c2b50f31e50441d6 /usr.bin
parenta6b474b6c1de12d2b002c0d59a0955179cb6f5e1 (diff)
Notes
Diffstat (limited to 'usr.bin')
-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 88c3f28d9cf1..761f189c06cb 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;
}