Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2017 06:05:04 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326455 - head/usr.bin/dc
Message-ID:  <201712020605.vB26542Z081794@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Sat Dec  2 06:05:03 2017
New Revision: 326455
URL: https://svnweb.freebsd.org/changeset/base/326455

Log:
  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.
  
  MFC after:	3 weeks

Modified:
  head/usr.bin/dc/inout.c

Modified: head/usr.bin/dc/inout.c
==============================================================================
--- head/usr.bin/dc/inout.c	Sat Dec  2 02:21:27 2017	(r326454)
+++ head/usr.bin/dc/inout.c	Sat Dec  2 06:05:03 2017	(r326455)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712020605.vB26542Z081794>