diff options
author | Martin Mares <mj@ucw.cz> | 1999-12-16 14:13:22 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-12-16 14:13:22 +0100 |
commit | 12a9d139eecea7e7fb5e73e82a2531c70894d4c8 (patch) | |
tree | 68db261d4b42bce98321c1f46270dae3c60ca1b6 /lib/ipv6.c | |
parent | 67ece6df42b20ecc524cf3e5c14e8b541afec860 (diff) | |
download | bird-12a9d139eecea7e7fb5e73e82a2531c70894d4c8.tar bird-12a9d139eecea7e7fb5e73e82a2531c70894d4c8.zip |
ipv6_compare() accepts non-lvalue arguments as well. This makes filters
compile with IPv6.
Diffstat (limited to 'lib/ipv6.c')
-rw-r--r-- | lib/ipv6.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -112,9 +112,11 @@ ipv6_ntoh(ip_addr *a) } int -ipv6_compare(ip_addr *x, ip_addr *y) +ipv6_compare(ip_addr X, ip_addr Y) { int i; + ip_addr *x = &X; + ip_addr *y = &Y; for(i=0; i<4; i++) if (x->addr[i] > y->addr[i]) |