Module Name: src
Committed By: apb
Date: Wed Jan 2 14:05:04 UTC 2013
Modified Files:
src/usr.bin/units: units.c
Log Message:
Really expand the name, not the definition, as the comment says.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/units/units.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/units/units.c
diff -u src/usr.bin/units/units.c:1.22 src/usr.bin/units/units.c:1.23
--- src/usr.bin/units/units.c:1.22 Tue Jan 1 12:45:06 2013
+++ src/usr.bin/units/units.c Wed Jan 2 14:05:04 2013
@@ -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 ([email protected])
@@ -771,7 +771,7 @@ listunits(int expand)
* 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;