Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/units Really expand the name, not the definition, as...



details:   https://anonhg.NetBSD.org/src/rev/0f7ec3d1f6cc
branches:  trunk
changeset: 783644:0f7ec3d1f6cc
user:      apb <apb%NetBSD.org@localhost>
date:      Wed Jan 02 14:05:04 2013 +0000

description:
Really expand the name, not the definition, as the comment says.

diffstat:

 usr.bin/units/units.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d23a6b555034 -r 0f7ec3d1f6cc usr.bin/units/units.c
--- a/usr.bin/units/units.c     Wed Jan 02 13:46:17 2013 +0000
+++ b/usr.bin/units/units.c     Wed Jan 02 14:05:04 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: units.c,v 1.22 2013/01/01 12:45:06 apb Exp $   */
+/*     $NetBSD: units.c,v 1.23 2013/01/02 14:05:04 apb Exp $   */
 
 /*
  * units.c   Copyright (c) 1993 by Adrian Mariano (adrian%cam.cornell.edu@localhost)
@@ -771,7 +771,7 @@
                         * will be interpreted as multiplication.
                         */
                        initializeunit(&theunit);
-                       if (addunit(&theunit, thedefn/*XXX*/, 0) != 0
+                       if (addunit(&theunit, thename, 0) != 0
                            || completereduce(&theunit) != 0) {
                                errors++;
                                printexpansion = 0;



Home | Main Index | Thread Index | Old Index