diff options
author | 2017-11-28 09:44:14 +0000 | |
---|---|---|
committer | 2017-11-28 09:44:14 +0000 | |
commit | 1afaa58168298d663357c4170ec7f0f18e3e7055 (patch) | |
tree | 7d2397834f93e00bbcbbffa9454ae5953e594a72 /usr.bin/dc | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-1afaa58168298d663357c4170ec7f0f18e3e7055.tar.xz wireguard-openbsd-1afaa58168298d663357c4170ec7f0f18e3e7055.zip |
zap dead stores; prompted by a diff from kshe
Diffstat (limited to 'usr.bin/dc')
-rw-r--r-- | usr.bin/dc/bcode.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/dc/bcode.c b/usr.bin/dc/bcode.c index 760d816c971..c1236a0159b 100644 --- a/usr.bin/dc/bcode.c +++ b/usr.bin/dc/bcode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcode.c,v 1.53 2017/11/28 08:03:01 otto Exp $ */ +/* $OpenBSD: bcode.c,v 1.54 2017/11/28 09:44:14 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -1589,11 +1589,8 @@ skipN(void) static void skip_until_mark(void) { - int ch; - for (;;) { - ch = readch(); - switch (ch) { + switch (readch()) { case 'M': return; case EOF: @@ -1618,7 +1615,7 @@ skip_until_mark(void) free(read_string(&bmachine.readstack[bmachine.readsp])); break; case '!': - switch (ch = readch()) { + switch (readch()) { case '<': case '>': case '=': |