summaryrefslogtreecommitdiff
path: root/usr.bin/at
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-12 16:57:45 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-12 16:57:45 +0000
commit2a427d0d8d3794bdfce11cd25efed6df51fda8d6 (patch)
tree47698709e92b68aef32e41ab90b06b3cf26628d0 /usr.bin/at
parent8cc3d69b51af6c038d14454f7717420f7f1bf2ad (diff)
The NULL macro yields a null pointer constant that is usable as an address
constant expression.
Diffstat (limited to 'usr.bin/at')
-rw-r--r--usr.bin/at/at.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index 2e699fb1908..33c67f9b4e7 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at.c,v 1.11 1997/03/03 03:34:34 millert Exp $ */
+/* $OpenBSD: at.c,v 1.12 1997/06/12 16:57:44 kstailey Exp $ */
/* $NetBSD: at.c,v 1.4 1995/03/25 18:13:31 glass Exp $ */
/*
@@ -73,7 +73,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */
/* File scope variables */
#ifndef lint
-static char rcsid[] = "$OpenBSD: at.c,v 1.11 1997/03/03 03:34:34 millert Exp $";
+static char rcsid[] = "$OpenBSD: at.c,v 1.12 1997/06/12 16:57:44 kstailey Exp $";
#endif
char *no_export[] =
@@ -145,7 +145,7 @@ nextjob()
int jobno;
FILE *fid;
- if ((fid = fopen(_PATH_SEQFILE, "r+")) != (FILE*)0) {
+ if ((fid = fopen(_PATH_SEQFILE, "r+")) != NULL) {
if (fscanf(fid, "%5x", &jobno) == 1) {
(void)rewind(fid);
jobno = (1+jobno) % 0xfffff; /* 2^20 jobs enough? */
@@ -154,7 +154,7 @@ nextjob()
jobno = EOF;
(void)fclose(fid);
return (jobno);
- } else if ((fid = fopen(_PATH_SEQFILE, "w")) != (FILE*)0) {
+ } else if ((fid = fopen(_PATH_SEQFILE, "w")) != NULL) {
(void)fprintf(fid, "%05x\n", jobno = 1);
(void)fclose(fid);
return (1);