]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/backlight/backlight.c
tree-wide: sort includes
[thirdparty/systemd.git] / src / backlight / backlight.c
index fc96eee6a92edb3350d9f9772e5fa4a69d1ac9a3..a2da976bb61fbba84883cd37385424f35ebe4344 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include "libudev.h"
-
+#include "alloc-util.h"
 #include "def.h"
 #include "escape.h"
 #include "fileio.h"
+#include "libudev.h"
 #include "mkdir.h"
+#include "parse-util.h"
+#include "proc-cmdline.h"
 #include "string-util.h"
 #include "udev-util.h"
 #include "util.h"
@@ -378,7 +380,7 @@ int main(int argc, char *argv[]) {
                 _cleanup_free_ char *value = NULL;
                 const char *clamp;
 
-                if (!shall_restore_state())
+                if (shall_restore_state() == 0)
                         return EXIT_SUCCESS;
 
                 if (!validate_device(udev, device))