]> git.cworth.org Git - tar/blobdiff - gnu/close-stream.c
Merge branch 'upstream' into dfsg-orig
[tar] / gnu / close-stream.c
index 306d9015983232a0f4ee8853e54fd57493fa8885..5004f30a6ec20b5993af9e1dadf5a03467ff7d54 100644 (file)
@@ -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