diff options
Diffstat (limited to 'usr.bin/unifdef')
-rw-r--r-- | usr.bin/unifdef/unifdef.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c index f43a95472cd..bd23579b01b 100644 --- a/usr.bin/unifdef/unifdef.c +++ b/usr.bin/unifdef/unifdef.c @@ -410,7 +410,7 @@ processinout(const char *ifn, const char *ofn) process(); return; } - if (stat(ofn, &st) < 0) { + if (stat(ofn, &st) == -1) { output = fopen(ofn, "wb"); if (output == NULL) err(2, "can't create %s", ofn); @@ -427,11 +427,11 @@ processinout(const char *ifn, const char *ofn) if (backext != NULL && *backext != '\0') { char *backname = astrcat(ofn, backext); - if (rename(ofn, backname) < 0) + if (rename(ofn, backname) == -1) err(2, "can't rename \"%s\" to \"%s\"", ofn, backname); free(backname); } - if (rename(tempname, ofn) < 0) + if (rename(tempname, ofn) == -1) err(2, "can't rename \"%s\" to \"%s\"", tempname, ofn); free(tempname); tempname = NULL; |