summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source/displayq.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-06-08 23:23:24 +0000
committermillert <millert@openbsd.org>2002-06-08 23:23:24 +0000
commiteaf9a761d3c5f849c8f8011701cb322fc8f9cd1b (patch)
treeca0dd914261949089ea37d6891bacec52c194e46 /usr.sbin/lpr/common_source/displayq.c
parentsync (diff)
downloadwireguard-openbsd-eaf9a761d3c5f849c8f8011701cb322fc8f9cd1b.tar.xz
wireguard-openbsd-eaf9a761d3c5f849c8f8011701cb322fc8f9cd1b.zip
o Replace some hard-coded octal constants w/ S_I*
o Remove some unneeded casts to char * when calling free()
Diffstat (limited to 'usr.sbin/lpr/common_source/displayq.c')
-rw-r--r--usr.sbin/lpr/common_source/displayq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c
index a58abcb56b8..eea7ea09b26 100644
--- a/usr.sbin/lpr/common_source/displayq.c
+++ b/usr.sbin/lpr/common_source/displayq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: displayq.c,v 1.18 2002/06/08 01:53:43 millert Exp $ */
+/* $OpenBSD: displayq.c,v 1.19 2002/06/08 23:23:24 millert Exp $ */
/* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static const char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95";
#else
-static const char rcsid[] = "$OpenBSD: displayq.c,v 1.18 2002/06/08 01:53:43 millert Exp $";
+static const char rcsid[] = "$OpenBSD: displayq.c,v 1.19 2002/06/08 23:23:24 millert Exp $";
#endif
#endif /* not lint */
@@ -151,7 +151,7 @@ displayq(int format)
ret = stat(LO, &statb);
PRIV_END;
if (ret >= 0) {
- if (statb.st_mode & 0100) {
+ if (statb.st_mode & S_IXUSR) {
if (remote)
printf("%s: ", host);
printf("Warning: %s is down: ", printer);
@@ -165,7 +165,7 @@ displayq(int format)
} else
putchar('\n');
}
- if (statb.st_mode & 010) {
+ if (statb.st_mode & S_IXGRP) {
if (remote)
printf("%s: ", host);
printf("Warning: %s queue is turned off\n", printer);