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:
Mike Frysinger 2011-11-23 13:17:20 -05:00
parent 40576a32d3
commit cc45abb77b

View File

@ -144,7 +144,7 @@ _netmask2cidr()
local i= len=
local IFS=.
for i in $1; do
while [ i -ne 0 ]; do
while [ ${i} -ne 0 ]; do
: $(( len += i % 2 ))
: $(( i >>= 1 ))
done