X-Git-Url: https://git.cworth.org/git?p=tar;a=blobdiff_plain;f=gnu%2Fclose-stream.c;fp=gnu%2Fclose-stream.c;h=5004f30a6ec20b5993af9e1dadf5a03467ff7d54;hp=306d9015983232a0f4ee8853e54fd57493fa8885;hb=b414e25de8ca49d7567a92c203d431383ec57c83;hpb=29ece34f44a27750bbfd76154ad9882580453dc7 diff --git a/gnu/close-stream.c b/gnu/close-stream.c index 306d901..5004f30 100644 --- a/gnu/close-stream.c +++ b/gnu/close-stream.c @@ -57,9 +57,9 @@ int close_stream (FILE *stream) { - bool some_pending = (__fpending (stream) != 0); - bool prev_fail = (ferror (stream) != 0); - bool fclose_fail = (fclose (stream) != 0); + const bool some_pending = (__fpending (stream) != 0); + const bool prev_fail = (ferror (stream) != 0); + const bool fclose_fail = (fclose (stream) != 0); /* Return an error indication if there was a previous failure or if fclose failed, with one exception: ignore an fclose failure if