This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] 4.1 fixinclude x-ify.
- From: Marcin Dalecki <martin at dalecki dot de>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 10 May 2005 01:16:02 +0200
- Subject: [PATCH] 4.1 fixinclude x-ify.
2005-05-09 Marcin Dalecki <martin@dalecki.de>
* fixfixes.c: Replace occurrences of strerror with
xstrerror, since
this function is using x-files^H^H^H^Hunctions through out
else.
diff -ur gcc-4.1-20050501/fixincludes/fixfixes.c gcc-4.1-20050501-new/
fixincludes/fixfixes.c
--- gcc-4.1-20050501/fixincludes/fixfixes.c 2004-10-27
22:13:57.000000000 +0200
+++ gcc-4.1-20050501-new/fixincludes/fixfixes.c 2005-05-07
05:15:04.000000000 +0200
@@ -766,7 +766,7 @@
if (freopen (argv[3], "r", stdin) != stdin)
{
- fprintf (stderr, z_reopen, errno, strerror( errno ), argv[3],
"in");
+ fprintf (stderr, z_reopen, errno, xstrerror( errno ), argv[3],
"in");
return EXIT_FAILURE;
}
@@ -787,7 +787,7 @@
strcat (pz_tmptmp, ".X");
if (freopen (pz_tmptmp, "w", stdout) != stdout)
{
- fprintf (stderr, z_reopen, errno, strerror( errno ),
pz_tmptmp, "out");
+ fprintf (stderr, z_reopen, errno, xstrerror( errno ),
pz_tmptmp, "out");
return EXIT_FAILURE;
}
@@ -798,7 +798,7 @@
if (rename (pz_tmptmp, argv[4]) != 0)
{
fprintf (stderr, "error %d (%s) renaming %s to %s\n", errno,
- strerror( errno ), pz_tmptmp, argv[4]);
+ xstrerror( errno ), pz_tmptmp, argv[4]);
return EXIT_FAILURE;
}