rdisc: fix invalid cast when printing addresses in config_changed()

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-02-24 11:40:22 +01:00
parent c2a1cb1a44
commit 076ca1e3e2

View file

@ -113,7 +113,7 @@ config_changed (NMRDisc *rdisc, NMRDiscConfigMap changed)
debug (" gateway %s pref %d exp %u", addrstr, gateway->preference, expiry (gateway));
}
for (i = 0; i < rdisc->addresses->len; i++) {
NMRDiscGateway *address = &g_array_index (rdisc->addresses, NMRDiscGateway, i);
NMRDiscAddress *address = &g_array_index (rdisc->addresses, NMRDiscAddress, i);
inet_ntop (AF_INET6, &address->address, addrstr, sizeof (addrstr));
debug (" address %s exp %u", addrstr, expiry (address));