diff options
Diffstat (limited to 'package/base-files/files/bin/ipcalc.sh')
-rwxr-xr-x | package/base-files/files/bin/ipcalc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index 7463d6bdda..27a52d6f83 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -11,7 +11,7 @@ function bitcount(c) { } function ip2int(ip) { - for (ret=0,n=split(ip,a,"\."),x=1;x<=n;x++) ret=or(lshift(ret,8),a[x]) + for (ret=0,n=split(ip,a,"\."),x=1;x<=n;x++) ret=or(lshift(ret,8),a[x]) return ret } |