From 38104ee2a545a0e06fc261c0161aed322285f363 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 9 Sep 2020 02:14:55 +0900 Subject: [PATCH] udev: do not discard const qualifier --- src/udev/udev-builtin-keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c index 665bf948a5d..eb980cb9805 100644 --- a/src/udev/udev-builtin-keyboard.c +++ b/src/udev/udev-builtin-keyboard.c @@ -87,7 +87,7 @@ static int map_keycode(sd_device *dev, int fd, int scancode, const char *keycode return 0; } -static char* parse_token(const char *current, int32_t *val_out) { +static const char* parse_token(const char *current, int32_t *val_out) { char *next; int32_t val; @@ -109,7 +109,7 @@ static char* parse_token(const char *current, int32_t *val_out) { static int override_abs(sd_device *dev, int fd, unsigned evcode, const char *value) { struct input_absinfo absinfo; - char *next; + const char *next; int r; r = ioctl(fd, EVIOCGABS(evcode), &absinfo); -- 2.47.3