summaryrefslogtreecommitdiffstats
path: root/usr.bin/error/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/error/touch.c')
-rw-r--r--usr.bin/error/touch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/error/touch.c b/usr.bin/error/touch.c
index a21c72d..755b313 100644
--- a/usr.bin/error/touch.c
+++ b/usr.bin/error/touch.c
@@ -595,7 +595,7 @@ writetouched(overwrite)
botch = 0;
oktorm = 1;
- while((nread = fread(edbuf, 1, sizeof(edbuf), o_touchedfile)) != NULL){
+ while((nread = fread(edbuf, 1, sizeof(edbuf), o_touchedfile)) != 0) {
if (nread != fwrite(edbuf, 1, nread, n_touchedfile)){
/*
* Catastrophe in temporary area: file system full?
@@ -655,7 +655,7 @@ int mustoverwrite(preciousfile, tmpfile)
{
int nread;
- while((nread = fread(edbuf, 1, sizeof(edbuf), tmpfile)) != NULL){
+ while((nread = fread(edbuf, 1, sizeof(edbuf), tmpfile)) != 0) {
if (mustwrite(edbuf, nread, preciousfile) == 0)
return(0);
}
OpenPOWER on IntegriCloud