Fri Jan 21 09:48:29 2011 UTC ()
dont negate error value passed to strerror
the linux libpciaccess returns negated value, but no other os does...


(ahoka)
diff -r1.1.1.2 -r1.2 xsrc/external/mit/xf86-video-intel/dist/src/i830_bios.c

cvs diff -r1.1.1.2 -r1.2 xsrc/external/mit/xf86-video-intel/dist/src/Attic/i830_bios.c (expand / switch to context diff)
--- xsrc/external/mit/xf86-video-intel/dist/src/Attic/i830_bios.c 2009/06/09 02:54:33 1.1.1.2
+++ xsrc/external/mit/xf86-video-intel/dist/src/Attic/i830_bios.c 2011/01/21 09:48:29 1.2
@@ -238,7 +238,7 @@
     if (ret != 0) {
 	xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
                   "libpciaccess failed to read %dkB video BIOS: %s\n",
-                  size / 1024, strerror(-ret));
+                  size / 1024, strerror(ret));
 	xfree (bios);
 	return -1;
     }