diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2007-09-21 01:55:11 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2007-09-21 01:55:11 +0000 |
commit | 8bcd62f2ff6745726c72cb2d2b8c12180a820608 (patch) | |
tree | 813441e72922e9af186945ffa372cb1f915e6a11 /usr.bin/at/at.c | |
parent | 65db91329ef71633d3559f8c202811d13e63791f (diff) | |
download | src-8bcd62f2ff6745726c72cb2d2b8c12180a820608.tar.gz src-8bcd62f2ff6745726c72cb2d2b8c12180a820608.zip |
Use NULL instead of 0 for the return value of fopen().
Approved by: re (kensmith)
Notes
Notes:
svn path=/head/; revision=172261
Diffstat (limited to 'usr.bin/at/at.c')
-rw-r--r-- | usr.bin/at/at.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 3eb3e740f7e4..71d8e607f9c9 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -184,7 +184,7 @@ nextjob() long jobno; FILE *fid; - if ((fid = fopen(ATJOB_DIR ".SEQ", "r+")) != (FILE*)0) { + if ((fid = fopen(ATJOB_DIR ".SEQ", "r+")) != NULL) { if (fscanf(fid, "%5lx", &jobno) == 1) { rewind(fid); jobno = (1+jobno) % 0xfffff; /* 2^20 jobs enough? */ @@ -195,7 +195,7 @@ nextjob() fclose(fid); return jobno; } - else if ((fid = fopen(ATJOB_DIR ".SEQ", "w")) != (FILE*)0) { + else if ((fid = fopen(ATJOB_DIR ".SEQ", "w")) != NULL) { fprintf(fid, "%05lx\n", jobno = 1); fclose(fid); return 1; |