summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2018-01-11 23:56:01 +0000
committerasomers <asomers@FreeBSD.org>2018-01-11 23:56:01 +0000
commit815f9c90980ffc488f62b866d64e0f5f0a3e55d9 (patch)
tree35f0c0b8b88a8276972f8effbe492bb43f03d8bb /usr.bin
parent99f5a9d94c25d98f09f03d822db8f24aa8c0698f (diff)
downloadFreeBSD-src-815f9c90980ffc488f62b866d64e0f5f0a3e55d9.zip
FreeBSD-src-815f9c90980ffc488f62b866d64e0f5f0a3e55d9.tar.gz
MFC r326455:
Reap dead code usr.bin/dc/inout.c Reap some dead code that was killed back in 2003 in OpenBSD, in version 1.8 of this file.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dc/inout.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/dc/inout.c b/usr.bin/dc/inout.c
index 740fb35..96091bd 100644
--- a/usr.bin/dc/inout.c
+++ b/usr.bin/dc/inout.c
@@ -216,12 +216,7 @@ readnumber(struct source *src, u_int base)
n->scale++;
bn_check(BN_mul_word(n->number, base));
-
-#if 0
- /* work around a bug in BN_add_word: 0 += 0 is buggy.... */
- if (v > 0)
-#endif
- bn_check(BN_add_word(n->number, v));
+ bn_check(BN_add_word(n->number, v));
}
if (base != 10) {
scale_number(n->number, n->scale);
OpenPOWER on IntegriCloud