[Pommed-commits] r257 - trunk/pommed/pmac

Julien Blache jblache at alioth.debian.org
Wed Feb 21 22:04:44 CET 2007


Author: jblache
Date: 2007-02-21 22:04:44 +0100 (Wed, 21 Feb 2007)
New Revision: 257

Modified:
   trunk/pommed/pmac/sysfs_backlight.c
Log:
Brown paper bag.


Modified: trunk/pommed/pmac/sysfs_backlight.c
===================================================================
--- trunk/pommed/pmac/sysfs_backlight.c	2007-02-21 20:43:19 UTC (rev 256)
+++ trunk/pommed/pmac/sysfs_backlight.c	2007-02-21 21:04:44 UTC (rev 257)
@@ -155,13 +155,13 @@
 int
 r9600_sysfs_backlight_probe(void)
 {
-  if (!access(brightness[SYSFS_DRIVER_RADEON], W_OK))
+  if (access(brightness[SYSFS_DRIVER_RADEON], W_OK) != 0)
     {
       logdebug("Failed to access brightness node: %s\n", strerror(errno));
       return -1;
     }
 
-  if (!access(actual_brightness[SYSFS_DRIVER_RADEON], R_OK))
+  if (access(actual_brightness[SYSFS_DRIVER_RADEON], R_OK) != 0)
     {
       logdebug("Failed to access actual_brightness node: %s\n", strerror(errno));
       return -1;




More information about the Pommed-commits mailing list