Properly align the header and the data columns for netstat -r with and

without the -W flag.
This commit is contained in:
Luiz Otavio O Souza 2015-05-18 18:03:47 +00:00
parent 7b24b050e0
commit 1947004980
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283071

View File

@ -389,7 +389,7 @@ p_rtentry_sysctl(const char *name, struct rt_msghdr *rtm)
p_sockaddr("destination", &addr.u_sa, &mask.u_sa, rtm->rtm_flags,
wid_dst);
p_sockaddr("gateway", &gw.u_sa, NULL, RTF_HOST, wid_gw);
snprintf(buffer, sizeof(buffer), "{[:-%d}{:flags/%%s}{]:}",
snprintf(buffer, sizeof(buffer), "{[:-%d}{:flags/%%s}{]:} ",
wid_flags);
p_flags(rtm->rtm_flags, buffer);
if (Wflag) {