[PATCH] 4.1 fixinclude x-ify.

Marcin Dalecki martin@dalecki.de
Mon May 9 23:16:00 GMT 2005


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;
      }




More information about the Gcc-patches mailing list