aboutsummaryrefslogtreecommitdiffstats
path: root/dns/libidn2/files/patch-src-idn2.c
blob: 1447e61d430e3b0d674814fad4695b0189bf1a55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- src/idn2.c.orig 2016-12-26 21:00:11 UTC
+++ src/idn2.c
@@ -31,7 +31,7 @@
 #include <unistr.h>
 
 /* Gnulib headers. */
-#include "error.h"
+#include "err.h"
 #include "gettext.h"
 #define _(String) dgettext (PACKAGE, String)
 #include "progname.h"
@@ -167,7 +167,7 @@ process_input (char *readbuf, int flags)
       free (output);
     }
   else
-    error (EXIT_FAILURE, 0, "%s: %s",
+    errc (EXIT_FAILURE, 0, "%s: %s",
       args_info.register_given ? "register" : "lookup",
       idn2_strerror (rc));
 }
@@ -228,7 +228,7 @@ main (int argc, char *argv[])
     }
 
   if (ferror (stdin))
-    error (EXIT_FAILURE, errno, "%s", _("input error"));
+    errc (EXIT_FAILURE, errno, "%s", _("input error"));
 
   cmdline_parser_free (&args_info);