summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:20:04 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:20:04 +0000
commitd0baad324dcc815c2f3baf05b33bfe3328addfe1 (patch)
tree0036b8e2f78da9e3ce09420dd6ef4e5cfe623257 /src/sort.c
parentce00cad00f1de8822c246037882a68facf131751 (diff)
downloadcoreutils-d0baad324dcc815c2f3baf05b33bfe3328addfe1.tar.xz
Include stdio--.h rather than stdio-safer.h.
Include stdlib--.h. Do not include unistd-safer.h. (create_temp_file): Don't call fd_safer; no longer needed now that we include *--.h files. (xfopen): Don't call fopen_safer, for similar reasons.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sort.c b/src/sort.c
index 2093bc55c..d99d01680 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -34,9 +34,9 @@
#include "physmem.h"
#include "posixver.h"
#include "quote.h"
-#include "stdio-safer.h"
+#include "stdlib--.h"
+#include "stdio--.h"
#include "strnumcmp.h"
-#include "unistd-safer.h"
#include "xmemcoll.h"
#include "xstrtol.h"
@@ -439,7 +439,6 @@ create_temp_file (FILE **pfp)
sigprocmask (SIG_SETMASK, &oldset, NULL);
errno = saved_errno;
- fd = fd_safer (fd);
if (fd < 0 || (*pfp = fdopen (fd, "w")) == NULL)
die (_("cannot create temporary file"), file);
@@ -466,7 +465,8 @@ xfopen (const char *file, const char *how)
}
else
{
- if ((fp = fopen_safer (file, how)) == NULL)
+ fp = fopen (file, how);
+ if (! fp)
die (_("open failed"), file);
}