diff options
author | peter <peter@FreeBSD.org> | 2000-08-27 01:17:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-08-27 01:17:11 +0000 |
commit | b4ced624462c0b03e2c279c34c489f9554727dda (patch) | |
tree | 365ea393062f3d383b652a4c5eadfbdf31f02062 /usr.bin | |
parent | eb32ed6b03cff60e20445911a7561f404b74f295 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/killall/killall.c | 5 |
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; } |