diff options
| author | cgd <cgd@NetBSD.org> | 2001-02-19 22:43:42 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 2001-02-19 22:43:42 +0000 |
| commit | 65a1026492e87f6b0f8d627fd85816d2c20eb550 (patch) | |
| tree | 5a367917394bf0e426195b9777de72ed1d51e32c /libexec/comsat | |
| parent | 0fd3d5e599ccd1706d50edc607687fbe3f333f20 (diff) | |
convert to use getprogname()
Diffstat (limited to 'libexec/comsat')
| -rw-r--r-- | libexec/comsat/comsat.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c index 793df19db2b..9a0eb208324 100644 --- a/libexec/comsat/comsat.c +++ b/libexec/comsat/comsat.c @@ -1,4 +1,4 @@ -/* $NetBSD: comsat.c,v 1.18 2001/02/04 21:59:52 christos Exp $ */ +/* $NetBSD: comsat.c,v 1.19 2001/02/19 22:46:13 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "from: @(#)comsat.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: comsat.c,v 1.18 2001/02/04 21:59:52 christos Exp $"); +__RCSID("$NetBSD: comsat.c,v 1.19 2001/02/19 22:46:13 cgd Exp $"); #endif #endif /* not lint */ @@ -85,8 +85,6 @@ void notify (struct utmp *, off_t); void onalrm (int); void reapchildren (int); -extern char *__progname; - int main(int argc, char *argv[]) { @@ -111,7 +109,7 @@ main(int argc, char *argv[]) logging = 1; break; default: - syslog(LOG_ERR, "Usage: %s [-l]", __progname); + syslog(LOG_ERR, "Usage: %s [-l]", getprogname()); exit(1); } if (chdir(_PATH_MAILDIR)) { |
