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/lpq/lpq.c | |
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/lpq/lpq.c')
-rw-r--r-- | usr.sbin/lpr/lpq/lpq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c index 4b2c9b2ab48..6e2b09ec64a 100644 --- a/usr.sbin/lpr/lpq/lpq.c +++ b/usr.sbin/lpr/lpq/lpq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpq.c,v 1.9 2001/11/23 03:58:18 deraadt Exp $ */ +/* $OpenBSD: lpq.c,v 1.10 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[] = "@(#)lpq.c 8.3 (Berkeley) 5/10/95"; #else -static const char rcsid[] = "$OpenBSD: lpq.c,v 1.9 2001/11/23 03:58:18 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: lpq.c,v 1.10 2001/12/06 03:12:31 ericj Exp $"; #endif #endif /* not lint */ @@ -95,7 +95,7 @@ main(argc, argv) euid = geteuid(); uid = getuid(); seteuid(uid); - name = *argv; + if (gethostname(host, sizeof(host))) { perror("lpq: gethostname"); exit(1); |