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:
Leon M. George 2022-10-14 14:09:34 +02:00 committed by Christian Marangi
parent 2903924b57
commit 67d2a7ef9e
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
1 changed files with 1 additions and 1 deletions

View File

@ -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