./lib/fileutils.c:9:5: warning: no previous declaration for 'close_stream' [-Wmissing-declarations] ./lib/fileutils.c:23:6: warning: no previous declaration for 'close_stdout' [-Wmissing-declarations] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
The close_stream() is copied from GNU lib. Inspiration to do this is talk by Jim Meyering - Goodbye World! The perils of relying on output streams in C. Reference: http://www.irill.org/events/ghm-gnu-hackers-meeting/videos/jim-meyering-goodbye-world-the-perils-of-relying-on-output-streams-in-c Signed-off-by: Sami Kerola <kerolasa@iki.fi>