summaryrefslogtreecommitdiff
path: root/src/comm.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:16:23 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:16:23 +0000
commit5a62048846a9a3cd6525e9e43d314db5ca6a5197 (patch)
tree2f34a64575eb1af73058e0246dfb51e9e428f209 /src/comm.c
parentffa06e1d94d61cb34722f3d75a696e29126c3b9b (diff)
downloadcoreutils-5a62048846a9a3cd6525e9e43d314db5ca6a5197.tar.xz
Include stdio--.h, not stdio-safer.h.
(compare_files): Use fopen, not fopen_safer.
Diffstat (limited to 'src/comm.c')
-rw-r--r--src/comm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/comm.c b/src/comm.c
index 2c6a22003..a5fd9203a 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -27,7 +27,7 @@
#include "error.h"
#include "hard-locale.h"
#include "quote.h"
-#include "stdio-safer.h"
+#include "stdio--.h"
#include "xmemcoll.h"
/* The official name of this program (e.g., no `g' prefix). */
@@ -160,9 +160,7 @@ compare_files (char **infiles)
{
initbuffer (&lb1[i]);
thisline[i] = &lb1[i];
- streams[i] = (STREQ (infiles[i], "-")
- ? stdin
- : fopen_safer (infiles[i], "r"));
+ streams[i] = (STREQ (infiles[i], "-") ? stdin : fopen (infiles[i], "r"));
if (!streams[i])
error (EXIT_FAILURE, errno, "%s", infiles[i]);