Re: Fix fail to detect keyboard backlight when initial value is zero

2010-10-18 Thread Richard Hughes
On 18 October 2010 12:44, Alex Murray wrote: > Something more like this? Applied, thanks. Richard. ___ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel

Re: Fix fail to detect keyboard backlight when initial value is zero

2010-10-18 Thread Richard Hughes
On 18 October 2010 10:00, Alex Murray wrote: > See attached patch - basically if the kbd backlight is zero at startup > upower will currently fail to detect it since it sees a value of 0 as > an error - instead don't bother to check for error since > g_ascii_strtoll returns 0 as both error and a v

Fix fail to detect keyboard backlight when initial value is zero

2010-10-18 Thread Alex Murray
See attached patch - basically if the kbd backlight is zero at startup upower will currently fail to detect it since it sees a value of 0 as an error - instead don't bother to check for error since g_ascii_strtoll returns 0 as both error and a valid conversion of 0. From 8fa63a8035133585233d45f0cff