summaryrefslogtreecommitdiff
path: root/src/print_ip_addr.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-03-25 20:55:55 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-03-25 22:05:00 +0200
commit12b1bfa9b8485de88b0bda82821c021aee197673 (patch)
treeb6d87f7ed5876109863a6599992e351509a30d58 /src/print_ip_addr.c
parentafb0525235c57fc4896633003a45bfb013af38d2 (diff)
Properly output JSON with libyajl
Diffstat (limited to 'src/print_ip_addr.c')
-rw-r--r--src/print_ip_addr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/print_ip_addr.c b/src/print_ip_addr.c
index 1c2839d..e97edaa 100644
--- a/src/print_ip_addr.c
+++ b/src/print_ip_addr.c
@@ -29,8 +29,6 @@ const char *get_ip_addr(const char *interface) {
if (ifaddr == NULL)
return NULL;
- addrp = ifaddr;
-
/* Skip until we are at the AF_INET address of interface */
for (addrp = ifaddr;