diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-09 02:14:55 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-11 20:05:08 +0200 |
commit | 2f6406914b3e30e21ee5318eac640b2a76c75c81 (patch) | |
tree | 030ec6118b94d217c32f7374d8cfe1798bb27e2a | |
parent | 07671aa4cc8f0211e77b8227e89d5b73ad7121c0 (diff) | |
download | systemd-2f6406914b3e30e21ee5318eac640b2a76c75c81.tar.gz |
udev: do not discard const qualifier
(cherry picked from commit 38104ee2a545a0e06fc261c0161aed322285f363)
-rw-r--r-- | src/udev/udev-builtin-keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c index 665bf948a5..eb980cb980 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); |