summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-11-27 11:57:47 +0000
committersheldonh <sheldonh@FreeBSD.org>2001-11-27 11:57:47 +0000
commit776532304a2e10ad642c2b4ac2295394bc9afcf2 (patch)
treefbd72ed26bc9289c980bc719fec13aba5ca7b032
parentf951178b75bc676829e7a843e16ff980682d9f7b (diff)
downloadFreeBSD-src-776532304a2e10ad642c2b4ac2295394bc9afcf2.zip
FreeBSD-src-776532304a2e10ad642c2b4ac2295394bc9afcf2.tar.gz
Catch two extraneous calls to expr(1) that slipped past rev 1.311.
-rw-r--r--etc/MAKEDEV4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index c2637b4..56bc62f 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -1228,7 +1228,7 @@ ttyA*)
units=`expr $i : 'ttyA\(.*\)$'`
port=1
while [ $port -le $units ]; do
- minor=$(expr $port - 1)
+ minor=$(($port - 1))
name=$(zeropad 2 $port)
mknod ttyA$name c $major $minor
mknod ttyiA$name c $major $(($minor + 65536))
@@ -1245,7 +1245,7 @@ cuaA*)
units=`expr $i : 'cuaA\(.*\)$'`
port=1
while [ $port -le $units ]; do
- minor=$(expr $port - 1)
+ minor=$(($port - 1))
name=$(zeropad 2 $port)
mknod cuaA$name c $major $(($minor + 128)) uucp:dialer
mknod cuaiA$name c $major $(($minor + 128 + 65536)) \
OpenPOWER on IntegriCloud