aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-23 13:17:20 -0500
committerMike Frysinger <vapier@gentoo.org>2011-11-23 13:17:20 -0500
commitcc45abb77b195ecd778e578cc716b90e9612e48a (patch)
tree5690eaabbdab166f5354af9b75a37b4a04b16ba1
parent40576a32d321b6807aad485daf389781cbb814c1 (diff)
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>
-rw-r--r--init.d/net.lo.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index d647f319..21816576 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -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