summaryrefslogtreecommitdiff
path: root/src/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host.c b/src/host.c
index 848e26d..f9d6d6d 100644
--- a/src/host.c
+++ b/src/host.c
@@ -60,7 +60,7 @@ int main(int argc, char **argv) {
for (address = result; address != NULL; address = address->ai_next) {
if (addr_to_ip(address, ip_address, sizeof(ip_address)) == 0)
continue;
- puts(ip_address);
+ printf("%-40s ", ip_address);
ret = getnameinfo(address->ai_addr, address->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
if (ret != 0) {
fprintf(stderr, "getnameinfo: %s\n", gai_strerror(ret));