[PATCH libevdev 3/4] Constify libevdev_get_repeat

Peter Hutterer peter.hutterer at who-t.net
Wed Dec 4 13:56:11 PST 2013


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

diff --git a/libevdev/libevdev.c b/libevdev/libevdev.c
index 2944f8f..d543dad 100644
--- a/libevdev/libevdev.c
+++ b/libevdev/libevdev.c
@@ -1335,7 +1335,7 @@ libevdev_event_type_get_max(unsigned int type)
 }
 
 LIBEVDEV_EXPORT int
-libevdev_get_repeat(struct libevdev *dev, int *delay, int *period)
+libevdev_get_repeat(const struct libevdev *dev, int *delay, int *period)
 {
 	if (!libevdev_has_event_type(dev, EV_REP))
 		return -1;
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h
index 23d1b32..afcf366 100644
--- a/libevdev/libevdev.h
+++ b/libevdev/libevdev.h
@@ -1614,7 +1614,7 @@ int libevdev_event_code_from_name_n(unsigned int type, const char *name,
  *
  * @note This function is signal-safe
  */
-int libevdev_get_repeat(struct libevdev *dev, int *delay, int *period);
+int libevdev_get_repeat(const struct libevdev *dev, int *delay, int *period);
 
 
 /********* DEPRECATED SECTION *********/
-- 
1.8.3.1



More information about the Input-tools mailing list