[PATCH libinput 1/6] evdev_device_suspend() is a void function

Peter Hutterer peter.hutterer at who-t.net
Tue Jul 19 00:49:24 UTC 2016


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev.c | 4 +---
 src/evdev.h | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index 1a0759b..3a7eda1 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2865,7 +2865,7 @@ evdev_notify_resumed_device(struct evdev_device *device)
 	device->suspended = 0;
 }
 
-int
+void
 evdev_device_suspend(struct evdev_device *device)
 {
 	struct libinput *libinput = evdev_libinput_context(device);
@@ -2890,8 +2890,6 @@ evdev_device_suspend(struct evdev_device *device)
 		close_restricted(libinput, device->fd);
 		device->fd = -1;
 	}
-
-	return 0;
 }
 
 int
diff --git a/src/evdev.h b/src/evdev.h
index f9c0dd1..f1133ee 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -415,7 +415,7 @@ double
 evdev_device_transform_y(struct evdev_device *device,
 			 double y,
 			 uint32_t height);
-int
+void
 evdev_device_suspend(struct evdev_device *device);
 
 int
-- 
2.7.4



More information about the wayland-devel mailing list