diff options
author | Eric Jackson <ericj@cvs.openbsd.org> | 2001-12-06 03:12:32 +0000 |
---|---|---|
committer | Eric Jackson <ericj@cvs.openbsd.org> | 2001-12-06 03:12:32 +0000 |
commit | 5e6b57e941f3eae5c553cc494b0b74f5b7256796 (patch) | |
tree | 9baacecb89a5182bc63387cc1d233277a32b14ec /usr.sbin/lpr/lprm | |
parent | 6ea9ffacd6332c98e70121078512e7dbfccc7c2d (diff) |
use err/warn and friends instead of printf/exit.
also, remove fatal2() which is just errx anyway.
millert@ ok
Diffstat (limited to 'usr.sbin/lpr/lprm')
-rw-r--r-- | usr.sbin/lpr/lprm/lprm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lprm/lprm.c b/usr.sbin/lpr/lprm/lprm.c index 838224a29ef..e94c43a0974 100644 --- a/usr.sbin/lpr/lprm/lprm.c +++ b/usr.sbin/lpr/lprm/lprm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lprm.c,v 1.8 2001/11/23 03:58:18 deraadt Exp $ */ +/* $OpenBSD: lprm.c,v 1.9 2001/12/06 03:12:31 ericj Exp $ */ /* * Copyright (c) 1983, 1993 @@ -44,7 +44,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)lprm.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: lprm.c,v 1.8 2001/11/23 03:58:18 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: lprm.c,v 1.9 2001/12/06 03:12:31 ericj Exp $"; #endif #endif /* not lint */ @@ -99,7 +99,7 @@ main(argc, argv) uid = getuid(); euid = geteuid(); seteuid(uid); /* be safe */ - name = argv[0]; + gethostname(host, sizeof(host)); openlog("lpd", 0, LOG_LPR); if ((p = getpwuid(getuid())) == NULL) |