diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2024-04-02 22:03:22 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2024-04-04 11:12:18 +0200 |
commit | 61e520ca4b32c1c7e3f5bfa3852a01b37921b5a8 (patch) | |
tree | ea626271c959f086e519157f96866cad822acf58 | |
parent | 1b60dd9a9ef5e6324504c5802205179407bfaa9f (diff) |
power-monitor: fix shutdown callback signature
The D-Bus signal is "PrepareForShutdown(b start)"; therefore, the
callback needs a boolean argument.
-rw-r--r-- | src/core/nm-power-monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nm-power-monitor.c b/src/core/nm-power-monitor.c index ac1430f018..c25f9b9c48 100644 --- a/src/core/nm-power-monitor.c +++ b/src/core/nm-power-monitor.c @@ -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); } |