diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-10-05 10:05:25 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-10-05 10:05:25 +0200 |
commit | e35c9cd02e95ec8a76bb4bb82f801a795e135bc9 (patch) | |
tree | 9e8e11414e0e1c7a40369316f1ebe723db950cb8 /libseat | |
parent | ec0d6565bbe81f1e371da0ddff39ee4c4124ffcf (diff) |
logind: Set userdata for ping_handler
Diffstat (limited to 'libseat')
-rw-r--r-- | libseat/backend/logind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c index e96af6a..5a10c75 100644 --- a/libseat/backend/logind.c +++ b/libseat/backend/logind.c @@ -83,7 +83,7 @@ static int ping_handler(sd_bus_message *m, void *userdata, sd_bus_error *ret_err static int send_ping(struct backend_logind *backend) { int ret = sd_bus_call_method_async(backend->bus, NULL, "org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.DBus.Peer", - "Ping", ping_handler, NULL, ""); + "Ping", ping_handler, backend, ""); if (ret < 0) { return ret; } |