[patch] Detecting batteries - need small change

Richard Hughes hughsient at gmail.com
Sun Sep 24 10:33:23 PDT 2006


On Sat, 2006-09-23 at 14:20 +0100, Richard Hughes wrote:
> Patch is attached that should fix things. I can't test this directly
> but
> it looks logically correct. Perhaps someone with a DELL could verify
> this, although it's pretty trivial.

But not trivial enough to have no bugs ;-)

Two changes, one is to use G_MAXUINT instead of -1 as we use guint for
the elem, and one to strip the leading spaces. Thanks to Nathan Holstein
for help debugging.

New patch attached.

Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-battery2.patch
Type: text/x-patch
Size: 1824 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060924/26954edc/hal-fix-battery2.bin


More information about the hal mailing list