summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1996-05-06 06:41:14 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1996-05-06 06:41:14 +0000
commitd58d530410406610225ddb7ce8651d1ad361d299 (patch)
tree852e031763d396e155ddfa7706c48892969cce88 /usr.sbin
parent758bd8b27107f6cb7f331e8f61b8373d1f8f5ab2 (diff)
Missing ' == NULL)' added...
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpq/lpq.c2
-rw-r--r--usr.sbin/lpr/lpr/lpr.c4
-rw-r--r--usr.sbin/lpr/lprm/lprm.c2
-rw-r--r--usr.sbin/lpr/pac/pac.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c
index 8559dc93cda..bcd0cc0bcff 100644
--- a/usr.sbin/lpr/lpq/lpq.c
+++ b/usr.sbin/lpr/lpq/lpq.c
@@ -108,7 +108,7 @@ main(argc, argv)
char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index bd299a8d7f6..57c71b3184a 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpr.c,v 1.3 1996/05/04 11:52:55 deraadt Exp $ */
+/* $OpenBSD: lpr.c,v 1.4 1996/05/06 06:40:13 pefo Exp $ */
/* $NetBSD: lpr.c,v 1.10 1996/03/21 18:12:25 jtc Exp $ */
/*
@@ -264,7 +264,7 @@ main(argc, argv)
char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
chkprinter(printer);
diff --git a/usr.sbin/lpr/lprm/lprm.c b/usr.sbin/lpr/lprm/lprm.c
index 88607c2083f..ea6c5dfd1ed 100644
--- a/usr.sbin/lpr/lprm/lprm.c
+++ b/usr.sbin/lpr/lprm/lprm.c
@@ -137,7 +137,7 @@ main(argc, argv)
char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c
index 36e15f253f7..eef6a52dbbc 100644
--- a/usr.sbin/lpr/pac/pac.c
+++ b/usr.sbin/lpr/pac/pac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pac.c,v 1.4 1996/05/04 11:53:05 deraadt Exp $ */
+/* $OpenBSD: pac.c,v 1.5 1996/05/06 06:41:13 pefo Exp $ */
/* $NetBSD: pac.c,v 1.7 1996/03/21 18:21:20 jtc Exp $ */
/*
@@ -173,7 +173,7 @@ fprintf(stderr,
char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
if (!chkprinter(printer)) {