1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00

some indentation output nits

This commit is contained in:
deraadt 2002-02-10 21:52:30 +00:00
parent d5db78f106
commit ee7baf7429

View File

@ -1,6 +1,6 @@
include(MAKEDEV.sub)dnl include(MAKEDEV.sub)dnl
dnl dnl
vers(a,{-$OpenBSD: MAKEDEV.mi,v 1.25 2002/02/09 19:34:40 drahn Exp $-})dnl vers(a,{-$OpenBSD: MAKEDEV.mi,v 1.26 2002/02/10 21:52:30 deraadt Exp $-})dnl
dnl dnl
divert(1)dnl divert(1)dnl
{-#-} {-#-}
@ -459,15 +459,15 @@ _mkdev(flo,fd*,
{-typnam=$U${i#fd[01]*} {-typnam=$U${i#fd[01]*}
case $typnam in case $typnam in
0|1) typnum=0;; # no type specified, assume A 0|1) typnum=0;; # no type specified, assume A
*A) typnam=0; typnum=0;; *A) typnum=0; typnam=0;;
*B) typnum=1;; *B) typnum=1;;
*C) typnum=2;; *C) typnum=2;;
*D) typnum=3;; *D) typnum=3;;
*E) typnum=4;; *E) typnum=4;;
*F) typnum=5;; *F) typnum=5;;
*G) typnum=6;; *G) typnum=6;;
*H) typnum=7;; *H) typnum=7;;
*) echo bad type $typnam for $i; exit 1;; *) echo bad type $typnam for $i; exit 1;;
esac esac
case $U in case $U in
0|1) blk=major_flo_b; chr=major_flo_c;; 0|1) blk=major_flo_b; chr=major_flo_c;;
@ -575,7 +575,6 @@ _mkdev(pty,pty*,{-case $U in
1) off=16 name=q;; 1) off=16 name=q;;
2) off=32 name=r;; 2) off=32 name=r;;
3) off=48 name=s;; 3) off=48 name=s;;
# Note that telnetd, rlogind, and xterm (at least) only look at p-s.
4) off=64 name=t;; 4) off=64 name=t;;
5) off=80 name=u;; 5) off=80 name=u;;
6) off=96 name=v;; 6) off=96 name=v;;
@ -855,15 +854,16 @@ T=$0
hex() hex()
{ {
case ${--}1 in case ${--}1 in
[0-9]) echo -n {-$-}1;; [0-9]) echo -n {-$-}1;;
10) echo -n a;; 10) echo -n a;;
11) echo -n b;; 11) echo -n b;;
12) echo -n c;; 12) echo -n c;;
13) echo -n d;; 13) echo -n d;;
14) echo -n e;; 14) echo -n e;;
15) echo -n f;; 15) echo -n f;;
esac esac
} }
trunc() trunc()
{ {
# XXX pdksh can't seem to deal with locally scoped variables # XXX pdksh can't seem to deal with locally scoped variables
@ -875,6 +875,7 @@ trunc()
r|*) echo ${arg1#$arg2} ;; r|*) echo ${arg1#$arg2} ;;
esac esac
} }
unt() unt()
{ {
# XXX pdksh can't seem to deal with locally scoped variables # XXX pdksh can't seem to deal with locally scoped variables
@ -894,6 +895,7 @@ dnl
dnl dodisk(name,unit,blkmaj,chrmaj,unit,off[,stepping]) dnl dodisk(name,unit,blkmaj,chrmaj,unit,off[,stepping])
dnl arg: 1 2 3 4 5 6 7 dnl arg: 1 2 3 4 5 6 7
dnl dnl
dodisk() dodisk()
{ {
n=Add(Mult(${5},${7:-16}),${6}) count=0 n=Add(Mult(${5},${7:-16}),${6}) count=0
@ -918,6 +920,7 @@ dnl 5. unit - beginning unit number for character devices
dnl 6. off - offset from 0 for all minor numbers (see svnd for an example) dnl 6. off - offset from 0 for all minor numbers (see svnd for an example)
dnl 7. step - optional, defaults to 16, number of partitions per device dnl 7. step - optional, defaults to 16, number of partitions per device
dnl dnl
dodisk2() dodisk2()
{ {
n=Add(Mult({-$-}5,${7:-16}),{-$-}6) n=Add(Mult({-$-}5,${7:-16}),{-$-}6)
@ -931,6 +934,7 @@ dodisk2()
# M name b/c major minor [mode] [group] # M name b/c major minor [mode] [group]
RMlist="rm -f" RMlist="rm -f"
MKlist=":" MKlist=":"
mkl() { mkl() {
dnl dnl
dnl uncomment if multi mknod happens dnl uncomment if multi mknod happens
@ -943,13 +947,14 @@ ifelse(1,0,
dnl dnl
dnl non multi mknod dnl non multi mknod
dnl dnl
[ "${mklist[{-$-}1]}" ] && { [ "${mklist[{-$-}1]}" ] && {
mklist[{-$-}1]="${mklist[{-$-}1]};mknod -m {-$-}1 {-$-}2 {-$-}3 {-$-}4 {-$-}5" mklist[{-$-}1]="${mklist[{-$-}1]};mknod -m {-$-}1 {-$-}2 {-$-}3 {-$-}4 {-$-}5"
} || { } || {
mklist[{-$-}1]="mknod -m {-$-}1 {-$-}2 {-$-}3 {-$-}4 {-$-}5" mklist[{-$-}1]="mknod -m {-$-}1 {-$-}2 {-$-}3 {-$-}4 {-$-}5"
modes="$modes {-$-}1" modes="$modes {-$-}1"
}) })
} }
M() { M() {
RMlist="$RMlist {-$-}1" RMlist="$RMlist {-$-}1"
mkl ${5-666} {-$-}1 {-$-}2 {-$-}3 {-$-}4 mkl ${5-666} {-$-}1 {-$-}2 {-$-}3 {-$-}4
@ -997,8 +1002,8 @@ if [ "$os" = "SunOS" ]; then
440) mask=227;; 440) mask=227;;
esac esac
echo `echo "$@"|sed \ echo `echo "$@"|sed \
's/mknod -m \([0-9]*\) /umask '$mask';mknod /;s/-m [0-9]* //g;\ 's/mknod -m \([0-9]*\) /umask '$mask';mknod /;s/-m [0-9]* //g;\
s/operator/5/g;s/root.kmem/root.2/g;s/root\./root:/g'` s/operator/5/g;s/root.kmem/root.2/g;s/root\./root:/g'`
} }
fi fi
list="$RMlist" list="$RMlist"
@ -1016,6 +1021,7 @@ else
fi fi
divert(3)dnl divert(3)dnl
dnl dnl
R() { R() {
[ "$DEBUG" ] && set -x [ "$DEBUG" ] && set -x
for i in "$@" for i in "$@"