diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-03-14 17:18:50 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-03-14 17:25:42 +0100 |
commit | a5d2a34497853a02692a0b8ea812f44d6820a399 (patch) | |
tree | c4aa68637722e863c7cd13fa26228fdf98f8cdc3 /lib/net.c | |
parent | 8c9986d310c58b26c000375be00be0deb9c2e360 (diff) |
Minor cleanups
BTW, 'prefices' is hypercorrection, as 'prefix' is from 'praefixum' with
plural 'praefixa'.
Diffstat (limited to 'lib/net.c')
-rw-r--r-- | lib/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,14 +81,14 @@ net_format(const net_addr *N, char *buf, int buflen) case NET_VPN4: { int c = rd_format(n->vpn4.rd, buf, buflen); - buf += c; buflen -= c; + ADVANCE(buf, buflen, c); return bsnprintf(buf, buflen, " %I4/%d", n->vpn4.prefix, n->vpn4.pxlen); } case NET_VPN6: { /* XXX: RD format is specified for VPN4; not found any for VPN6, reusing the same as for VPN4 */ int c = rd_format(n->vpn6.rd, buf, buflen); - buf += c; buflen -= c; + ADVANCE(buf, buflen, c); return bsnprintf(buf, buflen, " %I6/%d", n->vpn6.prefix, n->vpn6.pxlen); } case NET_ROA4: |