summaryrefslogtreecommitdiff
path: root/src/diff3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff3.c')
-rw-r--r--src/diff3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/diff3.c b/src/diff3.c
index 8ce1a3d..037df25 100644
--- a/src/diff3.c
+++ b/src/diff3.c
@@ -30,11 +30,11 @@
#include <file-type.h>
#include <getopt.h>
#include <progname.h>
-#include <stdopen.h>
#include <system-quote.h>
#include <version-etc.h>
#include <xalloc.h>
#include <xfreopen.h>
+#include <xstdopen.h>
/* The official name of this program (e.g., no 'g' prefix). */
#define PROGRAM_NAME "diff3"
@@ -273,9 +273,7 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
c_stack_action (0);
- int stdopen_errno = stdopen ();
- if (stdopen_errno != 0)
- error (EXIT_TROUBLE, stdopen_errno, _("standard file descriptors"));
+ xstdopen ();
while ((c = getopt_long (argc, argv, "aeimvx3AEL:TX", longopts, 0)) != -1)
{