svn commit: r327848 - stable/11/usr.bin/dc

Alan Somers asomers at FreeBSD.org
Thu Jan 11 23:56:02 UTC 2018


Author: asomers
Date: Thu Jan 11 23:56:01 2018
New Revision: 327848
URL: https://svnweb.freebsd.org/changeset/base/327848

Log:
  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.

Modified:
  stable/11/usr.bin/dc/inout.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/dc/inout.c
==============================================================================
--- stable/11/usr.bin/dc/inout.c	Thu Jan 11 21:31:10 2018	(r327847)
+++ stable/11/usr.bin/dc/inout.c	Thu Jan 11 23:56:01 2018	(r327848)
@@ -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);


More information about the svn-src-stable-11 mailing list