X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fclosein.c;fp=lib%2Fclosein.c;h=077a3247d60ffa39e896dab2d718015919371d07;hb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;hp=c7fb581eaa5af0f7b3e6c0e65468b909638ef2fb;hpb=c7e61475680fa226bd9b8bdd469cd66914e630f5;p=debian%2Fgzip diff --git a/lib/closein.c b/lib/closein.c index c7fb581..077a324 100644 --- a/lib/closein.c +++ b/lib/closein.c @@ -1,6 +1,6 @@ /* Close standard input, rewinding seekable stdin if necessary. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -86,22 +86,22 @@ close_stdin (void) if (freadahead (stdin) > 0) { /* Only attempt flush if stdin is seekable, as fflush is entitled to - fail on non-seekable streams. */ + fail on non-seekable streams. */ if (fseeko (stdin, 0, SEEK_CUR) == 0 && fflush (stdin) != 0) - fail = true; + fail = true; } if (close_stream (stdin) != 0) fail = true; if (fail) { /* Report failure, but defer exit until after closing stdout, - since the failure report should still be flushed. */ + since the failure report should still be flushed. */ char const *close_error = _("error closing file"); if (file_name) - error (0, errno, "%s: %s", quotearg_colon (file_name), - close_error); + error (0, errno, "%s: %s", quotearg_colon (file_name), + close_error); else - error (0, errno, "%s", close_error); + error (0, errno, "%s", close_error); } close_stdout ();