X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbacklight%2Fbacklight.c;h=86f10cc0cf290f15dc5978a74e8a3b9d9f04add3;hb=39883f622f392d8579f4428fc5a789a102efbb10;hp=9ec29f79a40197af00b629f1cad902a2d9b8eeba;hpb=74df0fca09b3c31ed19e14ba80f996fdff772417;p=elogind.git diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index 9ec29f79a..86f10cc0c 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -24,7 +24,6 @@ #include "fileio.h" #include "libudev.h" #include "udev-util.h" -#include "util.h" static struct udev_device *find_pci_or_platform_parent(struct udev_device *device) { struct udev_device *parent; @@ -65,7 +64,7 @@ static struct udev_device *find_pci_or_platform_parent(struct udev_device *devic value = udev_device_get_sysattr_value(parent, "class"); if (value) { - unsigned long class; + unsigned long class = 0; if (safe_atolu(value, &class) < 0) { log_warning("Cannot parse PCI class %s of device %s:%s.", value, subsystem, sysname); @@ -286,7 +285,7 @@ int main(int argc, char *argv[]) { * their probing at boot-time might happen in any order. This * means the validity checking of the device then is not * reliable, since it might not see other devices conflicting - * with a specific backlight. To deal with this we will + * with a specific backlight. To deal with this, we will * actively delete backlight state files at shutdown (where * device probing should be complete), so that the validity * check at boot time doesn't have to be reliable. */