w: indicate unknown host when -f is used

The option -f used too print `-' to FROM column when host was not
known. This commit changes behaviour back to what it was earlier.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-12-26 19:07:41 +01:00
parent 9d47cb0c38
commit 6241e9d545

2
w.c
View File

@ -78,6 +78,8 @@ static void print_host(const char *restrict host, int len, const int fromlen)
fputc(*host, stdout); fputc(*host, stdout);
++width; ++width;
} else { } else {
fputc('-', stdout);
++width;
break; break;
} }
} }