chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: fix sd_eviocrevoke ioctl call
[elogind.git]
/
src
/
login
/
logind-session-device.c
diff --git
a/src/login/logind-session-device.c
b/src/login/logind-session-device.c
index 592bcf2d9f958fcf88f8ef59e37cd67cfd229330..c2de862250ef696c9a963bb5d403974bda7cf368 100644
(file)
--- a/
src/login/logind-session-device.c
+++ b/
src/login/logind-session-device.c
@@
-62,10
+62,10
@@
static int session_device_notify(SessionDevice *sd, enum SessionDeviceNotificati
return -ENOMEM;
r = sd_bus_message_new_signal(
return -ENOMEM;
r = sd_bus_message_new_signal(
- sd->session->manager->bus, path,
+ sd->session->manager->bus,
+ &m, path,
"org.freedesktop.login1.Session",
"org.freedesktop.login1.Session",
- (type == SESSION_DEVICE_RESUME) ? "ResumeDevice" : "PauseDevice",
- &m);
+ (type == SESSION_DEVICE_RESUME) ? "ResumeDevice" : "PauseDevice");
if (!m)
return r;
if (!m)
return r;
@@
-107,7
+107,7
@@
static int sd_eviocrevoke(int fd) {
assert(fd >= 0);
assert(fd >= 0);
- r = ioctl(fd, EVIOCREVOKE,
1
);
+ r = ioctl(fd, EVIOCREVOKE,
NULL
);
if (r < 0) {
r = -errno;
if (r == -EINVAL && !warned) {
if (r < 0) {
r = -errno;
if (r == -EINVAL && !warned) {