chiark / gitweb /
util: unify reading of /proc/cmdline
[elogind.git] / src / backlight / backlight.c
index 6c00b00d82c64e385948cf3a52139ddf69822c7f..9ec29f79a40197af00b629f1cad902a2d9b8eeba 100644 (file)
@@ -291,7 +291,7 @@ int main(int argc, char *argv[]) {
          * device probing should be complete), so that the validity
          * check at boot time doesn't have to be reliable. */
 
-        if (streq(argv[1], "load") && restore_state()) {
+        if (streq(argv[1], "load") && shall_restore_state()) {
                 _cleanup_free_ char *value = NULL;
 
                 if (!validate_device(udev, device))