diff options
author | Glen Barber <gjb@FreeBSD.org> | 2013-05-25 07:17:16 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2013-05-25 07:17:16 +0000 |
commit | ffca5883e80e522b22c15948e6f7d8eade7c009e (patch) | |
tree | 2cce5ee49c46d8a4178afcc8b8fde87031919b3e /usr.bin/patch/patch.c | |
parent | 8d46c25d23452cd1fa40d53fc1144804fa7d11eb (diff) |
Notes
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r-- | usr.bin/patch/patch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index c898ee4a408c..d008c0f5aecb 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -303,7 +303,7 @@ main(int argc, char *argv[]) ++fuzz <= mymaxfuzz); if (skip_rest_of_patch) { /* just got decided */ - if (ferror(ofp) | fclose(ofp)) { + if (ferror(ofp) || fclose(ofp)) { say("Error writing %s\n", TMPOUTNAME); error = 1; @@ -385,7 +385,7 @@ main(int argc, char *argv[]) } } } - if (ferror(rejfp) | fclose(rejfp)) { + if (ferror(rejfp) || fclose(rejfp)) { say("Error writing %s\n", rejname); error = 1; } @@ -977,7 +977,7 @@ spew_output(void) #endif if (input_lines) copy_till(input_lines, true); /* dump remainder of file */ - rv = ferror(ofp) == 0 & fclose(ofp) == 0; + rv = ferror(ofp) == 0 && fclose(ofp) == 0; ofp = NULL; return rv; } |