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=ee168310ec4227174ace489bf5f81f8c2f91cde0;hpb=22f1eb8bc17e5be72dd23d42d6aaa60196ac22e6 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