chiark / gitweb /
logind: rename 'pos' to 'position'
[elogind.git] / src / login / logind-button.c
index 610adc513e0c6c5f5960bb03baf31d8793907bf3..210b889c4f987cd7998b38ac69e0578c77e98603 100644 (file)
@@ -70,7 +70,7 @@ void button_free(Button *b) {
                 /* If the device has been unplugged close() returns
                  * ENODEV, let's ignore this, hence we don't use
                  * safe_close() */
-                close(b->fd);
+                (void) close(b->fd);
         }
 
         free(b->name);
@@ -100,7 +100,7 @@ static void button_lid_switch_handle_action(Manager *manager, bool is_edge) {
         assert(manager);
 
         /* If we are docked, handle the lid switch differently */
-        if (manager_is_docked_or_multiple_displays(manager))
+        if (manager_is_docked_or_external_displays(manager))
                 handle_action = manager->handle_lid_switch_docked;
         else
                 handle_action = manager->handle_lid_switch;