projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab54f12
)
udev: do not discard const qualifier
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 8 Sep 2020 17:14:55 +0000
(
02:14
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 8 Sep 2020 17:34:38 +0000
(
02:34
+0900)
src/udev/udev-builtin-keyboard.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-builtin-keyboard.c
b/src/udev/udev-builtin-keyboard.c
index 665bf948a5dada0018a91f94f4cc3fd927bcda9a..eb980cb980584b3261fedff94a34a1e8ea4db4d9 100644
(file)
--- 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 c
onst c
har* 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;
+ c
onst c
har *next;
int r;
r = ioctl(fd, EVIOCGABS(evcode), &absinfo);