summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index 269f6c9..d3ab63a 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -491,17 +491,17 @@ bool Zaurus::setDisplayStatus( bool on )
491 } 491 }
492 } 492 }
493 else 493 else
494 { 494 {
495 int fd = ::open( "/sys/class/backlight/corgi-bl/power", O_WRONLY|O_NONBLOCK ); 495 int fd = ::open( "/sys/class/backlight/corgi-bl/power", O_WRONLY|O_NONBLOCK );
496 if ( fd ) 496 if ( fd )
497 { 497 {
498 char buf[10]; 498 char buf[10];
499 buf[0] = on ? '0' : '1'; 499 buf[0] = on ? '1' : '0';
500 buf[1] = '\0'; 500 buf[1] = '\0';
501 res = ( ::write( fd, &buf[0], 2 ) == 0 ); 501 res = ( ::write( fd, &buf[0], 2 ) == 0 );
502 ::close( fd ); 502 ::close( fd );
503 } 503 }
504 } 504 }
505 return res; 505 return res;
506} 506}
507 507