diff options
author | Pavel Šimerda <psimerda@redhat.com> | 2013-07-31 23:59:50 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2013-08-03 00:15:07 -0500 |
commit | 320a9d16a3067df32f5ad8a2bb3770104ec359b1 (patch) | |
tree | a8388971596829daef6eeab6b4544e35fbe988b7 /src/dns-manager | |
parent | 6762b2f792ba4d4dcc511b63555015a00addf04d (diff) | |
download | NetworkManager-320a9d16a3067df32f5ad8a2bb3770104ec359b1.tar.gz |
all: replace struct in_addr with guint32
Diffstat (limited to 'src/dns-manager')
-rw-r--r-- | src/dns-manager/nm-dns-manager.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c index 47c14cf6d6..98391b5cf5 100644 --- a/src/dns-manager/nm-dns-manager.c +++ b/src/dns-manager/nm-dns-manager.c @@ -111,10 +111,10 @@ merge_one_ip4_config (NMResolvConfData *rc, NMIP4Config *src) num = nm_ip4_config_get_num_nameservers (src); for (i = 0; i < num; i++) { - struct in_addr addr; + guint32 addr; char buf[INET_ADDRSTRLEN]; - addr.s_addr = nm_ip4_config_get_nameserver (src, i); + addr = nm_ip4_config_get_nameserver (src, i); if (inet_ntop (AF_INET, &addr, buf, INET_ADDRSTRLEN) > 0) add_string_item (rc->nameservers, buf); } @@ -136,10 +136,10 @@ merge_one_ip4_config (NMResolvConfData *rc, NMIP4Config *src) /* NIS stuff */ num = nm_ip4_config_get_num_nis_servers (src); for (i = 0; i < num; i++) { - struct in_addr addr; + guint32 addr; char buf[INET_ADDRSTRLEN]; - addr.s_addr = nm_ip4_config_get_nis_server (src, i); + addr = nm_ip4_config_get_nis_server (src, i); if (inet_ntop (AF_INET, &addr, buf, INET_ADDRSTRLEN) > 0) add_string_item (rc->nis_servers, buf); } |