diff options
| author | cgd <cgd@NetBSD.org> | 2001-02-19 22:48:57 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 2001-02-19 22:48:57 +0000 |
| commit | 8a986b2e9645925b19908ff325b5a415379f7b34 (patch) | |
| tree | 4b42e7a7a2ba4936d78a34d57a79cb55d88448e3 /sbin/slattach | |
| parent | 2c1f7a6ee854300c2fae16a7e352d7f3d8b07e2c (diff) | |
convert to use getprogname()
Diffstat (limited to 'sbin/slattach')
| -rw-r--r-- | sbin/slattach/slattach.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index 7fe15dc37a9..ead4cbe04da 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -1,4 +1,4 @@ -/* $NetBSD: slattach.c,v 1.23 2001/02/04 21:11:47 christos Exp $ */ +/* $NetBSD: slattach.c,v 1.24 2001/02/19 22:56:23 cgd Exp $ */ /* * Copyright (c) 1988, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)slattach.c 8.2 (Berkeley) 1/7/94"; #else -__RCSID("$NetBSD: slattach.c,v 1.23 2001/02/04 21:11:47 christos Exp $"); +__RCSID("$NetBSD: slattach.c,v 1.24 2001/02/19 22:56:23 cgd Exp $"); #endif #endif /* not lint */ @@ -78,8 +78,6 @@ int main __P((int, char *[])); int ttydisc __P((char *)); void usage __P((void)); -extern char *__progname; - int main(argc, argv) int argc; @@ -174,8 +172,9 @@ ttydisc(name) void usage() { + (void)fprintf(stderr, "Usage: %s [-t ldisc] [-hHlm] [-s baudrate] ttyname\n", - __progname); + getprogname()); exit(1); } |
