Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.vax Fix previous, caused by premature optimization...



details:   https://anonhg.NetBSD.org/src/rev/f7babb96cd43
branches:  trunk
changeset: 580637:f7babb96cd43
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon May 02 02:51:04 2005 +0000

description:
Fix previous, caused by premature optimization...
Noted by Kirk Russell.

diffstat:

 etc/etc.vax/MAKEDEV.conf |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r d1c4ddbb4bdd -r f7babb96cd43 etc/etc.vax/MAKEDEV.conf
--- a/etc/etc.vax/MAKEDEV.conf  Mon May 02 00:47:58 2005 +0000
+++ b/etc/etc.vax/MAKEDEV.conf  Mon May 02 02:51:04 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.8 2005/05/02 00:47:58 lukem Exp $
+# $NetBSD: MAKEDEV.conf,v 1.9 2005/05/02 02:51:04 lukem Exp $
 
 all_md)
        makedev mt0 mt1 ts0 ts1 st0 st1 uk0 ss0 cd0 vt0
@@ -94,8 +94,9 @@
                i=0
                while [ $i -lt 8 ]
                do
-                       ounit=$(zeropad 2 $unit)
-                       mkdev tty$ounit c 1 $(($unit * 8 + $i))
+                       oi=$(($unit * 8 + $i))
+                       zoi=$(zeropad 2 $oi)
+                       mkdev tty$zoi c 1 $oi
                        i=$(($i + 1))
                done
                ;;
@@ -211,8 +212,9 @@
        i=0
        while [ $i -lt 4 ]
        do
-               ounit=$(zeropad 2 $i)
-               mkdev np$ounit c 39 $(($offset + $i))
+               oi=$(($offset + $i))
+               zoi=$(zeropad 2 $oi)
+               mkdev np$zoi c 39 $oi
                i=$(($i + 1))
        done
        esac



Home | Main Index | Thread Index | Old Index