From 2a427d0d8d3794bdfce11cd25efed6df51fda8d6 Mon Sep 17 00:00:00 2001 From: kstailey Date: Thu, 12 Jun 1997 16:57:45 +0000 Subject: The NULL macro yields a null pointer constant that is usable as an address constant expression. --- usr.bin/at/at.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/at/at.c') 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); -- cgit v1.2.3