diff options
-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 '=': |