Include stdio--.h, not stdio-safer.h.

(compare_files): Use fopen, not fopen_safer.
This commit is contained in:
Paul Eggert committed 2005-07-03 07:16:23 +00:00
1 parent ffa06e1d94
commit 5a62048846
1 file changed
+2 -4
+2 -4
View File
@@ -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]);