diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-09 19:30:50 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-09 19:30:50 +0000 |
commit | 46a99c6b2f097d7d6131d664e76d028d872c9041 (patch) | |
tree | 262aa90baf0ba6a32965882e76434f6ef85131b7 /usr.bin/tip/remote.c | |
parent | dd1465da7dc1d30e7bfb903d66105c707307c1ec (diff) |
implement some more command line options for cu and use getopt(3)
Diffstat (limited to 'usr.bin/tip/remote.c')
-rw-r--r-- | usr.bin/tip/remote.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/tip/remote.c b/usr.bin/tip/remote.c index a7d0b2d9749..036b3d7e14f 100644 --- a/usr.bin/tip/remote.c +++ b/usr.bin/tip/remote.c @@ -1,4 +1,4 @@ -/* $OpenBSD: remote.c,v 1.8 2001/07/12 05:17:24 deraadt Exp $ */ +/* $OpenBSD: remote.c,v 1.9 2001/09/09 19:30:49 millert Exp $ */ /* $NetBSD: remote.c,v 1.5 1997/04/20 00:02:45 mellon Exp $ */ /* @@ -45,7 +45,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)remote.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: remote.c,v 1.8 2001/07/12 05:17:24 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: remote.c,v 1.9 2001/09/09 19:30:49 millert Exp $"; #endif /* not lint */ #include <stdio.h> @@ -106,15 +106,17 @@ getremcap(host) } switch(stat) { case -1: - fprintf(stderr, "tip: unknown host %s\n", host); + fprintf(stderr, "%s: unknown host %s\n", __progname, + host); break; case -2: fprintf(stderr, - "tip: can't open host description file\n"); + "%s: can't open host description file\n", + __progname); break; case -3: fprintf(stderr, - "tip: possible reference loop in host description file\n"); + "%s: possible reference loop in host description file\n", __progname); break; } exit(3); @@ -214,7 +216,7 @@ getremote(host) if (!lookedup) { if (host == NOSTR && (host = getenv("HOST")) == NOSTR) { - fprintf(stderr, "tip: no host specified\n"); + fprintf(stderr, "%s: no host specified\n", __progname); exit(3); } getremcap(host); |