diff options
author | kn <kn@cvs.openbsd.org> | 2018-09-26 16:26:38 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2018-09-26 16:26:38 +0000 |
commit | 4868aaa816cf4bf190f353f3f0c0f71221768b37 (patch) | |
tree | 71fbbfffb68b6c91595f8f5e1ccc145c9564ad21 /usr.bin/getent | |
parent | aeba8c40aca141d50132290e0b023d7aa0d31748 (diff) |
Adjust alignment in hostsprint()
hostsprint() reserves only 16 columns for IPs and prints one whitespace too
many afterwards. Crank it up to 39 as per hostsaddrinfo() to align nicely.
OK millert
Diffstat (limited to 'usr.bin/getent')
-rw-r--r-- | usr.bin/getent/getent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/getent/getent.c b/usr.bin/getent/getent.c index 016c67c3743..0794c8e7f8f 100644 --- a/usr.bin/getent/getent.c +++ b/usr.bin/getent/getent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getent.c,v 1.18 2018/09/25 19:51:39 kn Exp $ */ +/* $OpenBSD: getent.c,v 1.19 2018/09/26 16:26:37 kn Exp $ */ /* $NetBSD: getent.c,v 1.7 2005/08/24 14:31:02 ginsbach Exp $ */ /*- @@ -225,7 +225,7 @@ hostsprint(const struct hostent *he) if (inet_ntop(he->h_addrtype, he->h_addr, buf, sizeof(buf)) == NULL) strlcpy(buf, "# unknown", sizeof(buf)); - printfmtstrings(he->h_aliases, " ", " ", "%-16s %s", buf, he->h_name); + printfmtstrings(he->h_aliases, " ", " ", "%-39s %s", buf, he->h_name); } static int hostsaddrinfo(const char *name) |