net.lo: fix typo in previous math commit
x-Gentoo-Bug: 391671 x-Gentoo-Bug-URL: http://bugs.gentoo.org/391671 Reported-by: Duncan <1i5t5.duncan@cox.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
40576a32d3
commit
cc45abb77b
@ -144,7 +144,7 @@ _netmask2cidr()
|
|||||||
local i= len=
|
local i= len=
|
||||||
local IFS=.
|
local IFS=.
|
||||||
for i in $1; do
|
for i in $1; do
|
||||||
while [ i -ne 0 ]; do
|
while [ ${i} -ne 0 ]; do
|
||||||
: $(( len += i % 2 ))
|
: $(( len += i % 2 ))
|
||||||
: $(( i >>= 1 ))
|
: $(( i >>= 1 ))
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user