1
0
Fork 0
forked from len0rd/rockbox

Small fixes to kbd_create_layout

- Make the argument const since it's not actually mutated
- Actually return the size of the buffer used since this is what it
  was supposed to do (although no existing callers cared anyway)

Change-Id: I0802071cf63d4af419f427ff54adca50b14918ad
This commit is contained in:
Aidan MacDonald 2021-07-20 21:13:37 +01:00
parent 740a50687f
commit 966e210e6d
2 changed files with 7 additions and 3 deletions

View file

@ -22,6 +22,6 @@
#define KBD_HELPER_H
/* create a custom keyboard layout for kbd_input */
int kbd_create_layout(char *layout, unsigned short *buf, int bufsz);
int kbd_create_layout(const char *layout, unsigned short *buf, int bufsz);
#endif /* KBD_HELPER_H */