mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 14:58:05 +02:00
power-monitor: fix shutdown callback signature
The D-Bus signal is "PrepareForShutdown(b start)"; therefore, the callback needs a boolean argument.
This commit is contained in:
parent
1b60dd9a9e
commit
61e520ca4b
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ prepare_for_sleep_cb(GDBusProxy *proxy, gboolean is_about_to_suspend, gpointer d
|
|||
}
|
||||
|
||||
static void
|
||||
prepare_for_shutdown_cb(GDBusProxy *proxy, gpointer data)
|
||||
prepare_for_shutdown_cb(GDBusProxy *proxy, gboolean is_about_to_shutdown, gpointer data)
|
||||
{
|
||||
shutdown_signal(data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue