chiark / gitweb /
util: define union dirent_storage and make use of it everywhere
[elogind.git] / src / login / logind-inhibit.c
index 6acc5c82768a60a3e0a5272dcba50dba539f66a4..fce2f4dd907a99725ae8b14afaef7d9eeb4fde01 100644 (file)
@@ -442,7 +442,7 @@ InhibitWhat inhibit_what_from_string(const char *s) {
                         what |= INHIBIT_HANDLE_POWER_KEY;
                 else if (l == 16 && strncmp(w, "handle-sleep-key", l) == 0)
                         what |= INHIBIT_HANDLE_SLEEP_KEY;
-                else if (l == 16 && strncmp(w, "handle-lid-switch", l) == 0)
+                else if (l == 17 && strncmp(w, "handle-lid-switch", l) == 0)
                         what |= INHIBIT_HANDLE_LID_SWITCH;
                 else
                         return _INHIBIT_WHAT_INVALID;