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
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ function bitcount(c) {
|
||||||
|
|
||||||
function ip2int(ip) {
|
function ip2int(ip) {
|
||||||
ret=0
|
ret=0
|
||||||
n=split(ip,a,"\.")
|
n=split(ip,a,"\\.")
|
||||||
for (x=1;x<=n;x++)
|
for (x=1;x<=n;x++)
|
||||||
ret=or(lshift(ret,8),a[x])
|
ret=or(lshift(ret,8),a[x])
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue