mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
base-files: ipcalc.sh: fix awk regex syntax
It worked fine before but gawk warns about it. Signed-off-by: Leon M. George <leon@georgemail.eu>
This commit is contained in:
parent
2903924b57
commit
67d2a7ef9e
@ -11,7 +11,7 @@ function bitcount(c) {
|
||||
|
||||
function ip2int(ip) {
|
||||
ret=0
|
||||
n=split(ip,a,"\.")
|
||||
n=split(ip,a,"\\.")
|
||||
for (x=1;x<=n;x++)
|
||||
ret=or(lshift(ret,8),a[x])
|
||||
return ret
|
||||
|
Loading…
x
Reference in New Issue
Block a user