mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 11:50:18 +01:00
sleep-monitor: don't return value from drop_inhibitor()
This commit is contained in:
parent
d0a6f6f34c
commit
fc14d32e99
1 changed files with 2 additions and 4 deletions
|
|
@ -106,16 +106,14 @@ NM_DEFINE_SINGLETON_GETTER (NMSleepMonitor, nm_sleep_monitor_get, NM_TYPE_SLEEP_
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
static gboolean
|
||||
static void
|
||||
drop_inhibitor (NMSleepMonitor *self)
|
||||
{
|
||||
if (self->inhibit_fd >= 0) {
|
||||
_LOGD ("Dropping systemd sleep inhibitor");
|
||||
_LOGD ("Dropping systemd sleep inhibitor %d", self->inhibit_fd);
|
||||
close (self->inhibit_fd);
|
||||
self->inhibit_fd = -1;
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue