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 /libnm-glib/libnm-glib-test.c | |
parent | 6762b2f792ba4d4dcc511b63555015a00addf04d (diff) | |
download | NetworkManager-320a9d16a3067df32f5ad8a2bb3770104ec359b1.tar.gz |
all: replace struct in_addr with guint32
Diffstat (limited to 'libnm-glib/libnm-glib-test.c')
-rw-r--r-- | libnm-glib/libnm-glib-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libnm-glib/libnm-glib-test.c b/libnm-glib/libnm-glib-test.c index 4e80806fbe..48a8ff1692 100644 --- a/libnm-glib/libnm-glib-test.c +++ b/libnm-glib/libnm-glib-test.c @@ -70,16 +70,16 @@ static gchar * ip4_address_as_string (guint32 ip) { char buf[INET_ADDRSTRLEN+1]; - struct in_addr tmp_addr; + guint32 tmp_addr; memset (&buf, '\0', sizeof (buf)); - tmp_addr.s_addr = ip; + tmp_addr = ip; if (inet_ntop (AF_INET, &tmp_addr, buf, INET_ADDRSTRLEN)) { return g_strdup (buf); } else { g_warning ("%s: error converting IP4 address 0x%X", - __func__, ntohl (tmp_addr.s_addr)); + __func__, ntohl (tmp_addr)); return NULL; } } |