Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
removed more unneeded comments
[slstatus.git]
/
slstatus.c
diff --git
a/slstatus.c
b/slstatus.c
index
3675660
..
73dc5a3
100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-277,7
+277,6
@@
ip(const char *interface)
return smprintf(UNKNOWN_STR);
}
- /* get the ip address */
for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) {
if (ifa->ifa_addr == NULL)
continue;
@@
-294,7
+293,6
@@
ip(const char *interface)
}
}
- /* free the address */
freeifaddrs(ifaddr);
return smprintf(UNKNOWN_STR);