summaryrefslogtreecommitdiff
path: root/src/shred.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-09 20:25:58 +0000
committerJim Meyering <jim@meyering.net>2000-05-09 20:25:58 +0000
commit5c4406f73118d1b9aebf78c41df23cbe2df53d07 (patch)
tree818ac2be89f79bbb8bad51b38910c0288292d97c /src/shred.c
parent721557bb21fda6f5a24167d6a896424158b35bc6 (diff)
downloadcoreutils-5c4406f73118d1b9aebf78c41df23cbe2df53d07.tar.xz
Include sys/types.h in shred.c before including
sys/stat.h or system.h. From John David Anglin.
Diffstat (limited to 'src/shred.c')
-rw-r--r--src/shred.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shred.c b/src/shred.c
index d192a1a33..158eedd02 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -85,6 +85,7 @@
#include <stdio.h>
#include <setjmp.h>
#include <signal.h>
+#include <sys/types.h>
#if HAVE_CONFIG_H
/* Default fileutils build */
@@ -476,7 +477,6 @@ Delete a file securely, first overwriting it to hide its contents.\n\
\n\
FIXME maybe add more discussion here?"), DEFAULT_PASSES);
puts (_("\nReport bugs to <bug-fileutils@gnu.org>."));
- close_stdout ();
}
exit (status);
}
@@ -1812,8 +1812,6 @@ main (int argc, char **argv)
/* Just on general principles, wipe s. */
memset (&s, 0, sizeof s);
- close_stdout ();
-
exit (err);
}
/*