summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-08-16 23:48:58 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-08-16 23:48:58 +0000
commitca47eb762d71c2497419223a947974f9cf1eff14 (patch)
tree4b1b0fa32329b447557f3b6baa5c5c920e3f452f
parentbc684e1d25c61e03854f1c6d90236cd9c93a1ecb (diff)
Consistify so "rup host" and "rup -d host" produce similarly formatted output.
-rw-r--r--usr.bin/rup/rup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c
index fd9d244d042..2ba3aa33912 100644
--- a/usr.bin/rup/rup.c
+++ b/usr.bin/rup/rup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rup.c,v 1.10 1999/02/09 13:32:03 deraadt Exp $ */
+/* $OpenBSD: rup.c,v 1.11 1999/08/16 23:48:57 aaron Exp $ */
/*-
* Copyright (c) 1993, John Brezak
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: rup.c,v 1.10 1999/02/09 13:32:03 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rup.c,v 1.11 1999/08/16 23:48:57 aaron Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -53,7 +53,7 @@ static char rcsid[] = "$OpenBSD: rup.c,v 1.10 1999/02/09 13:32:03 deraadt Exp $"
#undef FSCALE
#include <rpcsvc/rstat.h>
-#define HOST_WIDTH 24
+#define HOST_WIDTH 27
int printtime; /* print the remote host(s)'s time */
@@ -197,7 +197,7 @@ print_rup_data(host, host_stat)
char hours_buf[16];
if (printtime)
- printf("%-*.*s", HOST_WIDTH-3, HOST_WIDTH-3, host);
+ printf("%-*.*s", HOST_WIDTH-8, HOST_WIDTH-8, host);
else
printf("%-*.*s", HOST_WIDTH, HOST_WIDTH, host);