chiark / gitweb /
logind: fix sd_eviocrevoke ioctl call
[elogind.git] / src / login / logind-session-device.c
index 932abb82f960655564b714b75c209129fced93fc..c2de862250ef696c9a963bb5d403974bda7cf368 100644 (file)
@@ -107,7 +107,7 @@ static int sd_eviocrevoke(int fd) {
 
         assert(fd >= 0);
 
-        r = ioctl(fd, EVIOCREVOKE, 1);
+        r = ioctl(fd, EVIOCREVOKE, NULL);
         if (r < 0) {
                 r = -errno;
                 if (r == -EINVAL && !warned) {