diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-11-28 09:44:15 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-11-28 09:44:15 +0000 |
commit | 043ed606472cb624dc2c1274eeeb40142059d496 (patch) | |
tree | 18ecbcddcd83be5997a6936867b50f0a6bf0b4fc | |
parent | c89380fbb03a9117e29488ee97f083286cdaddbb (diff) |
zap dead stores; prompted by a diff from kshe
-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 '=': |