summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:07:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:07:23 +0000
commitb2e9efd3fb05b85dc11b3ea795320abfc2e86feb (patch)
treec4b3addfcfb980cd851b897d097c156230fd7a41 /usr.sbin/lpr
parent66b10192a6c1f61e3bd3d3645bf3178ae7844f41 (diff)
uid_t and gid_t are unsigned
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index 2add61f1952..bc66f6dc2e3 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpd.c,v 1.36 2002/06/11 22:47:07 millert Exp $ */
+/* $OpenBSD: lpd.c,v 1.37 2002/06/23 03:07:19 deraadt Exp $ */
/* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */
/*
@@ -45,7 +45,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95";
#else
-static const char rcsid[] = "$OpenBSD: lpd.c,v 1.36 2002/06/11 22:47:07 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lpd.c,v 1.37 2002/06/23 03:07:19 deraadt Exp $";
#endif
#endif /* not lint */
@@ -160,7 +160,7 @@ main(int argc, char **argv)
* We want to run with euid of daemon most of the time.
*/
if ((pw = getpwuid(DEFUID)) == NULL)
- errx(1, "daemon uid (%d) not in password file", DEFUID);
+ errx(1, "daemon uid (%u) not in password file", DEFUID);
real_uid = pw->pw_uid;
real_gid = pw->pw_gid;
effective_uid = 0;