1 --- a/console-tools/kbd_mode.c
2 +++ b/console-tools/kbd_mode.c
5 * Mini kbd_mode implementation for busybox
7 - * Copyright (C) 2007 Loïc Grenié <loic.grenie@gmail.com>
8 + * Copyright (C) 2007 Loic Grenie <loic.grenie@gmail.com>
9 * written using Andries Brouwer <aeb@cwi.nl>'s kbd_mode from
10 * console-utils v0.2.3, licensed under GNU GPLv2
13 printf("The keyboard is in %s mode\n", mode);
15 opt = opt & UNICODE ? 3 : opt >> 1;
16 - xioctl(fd, KDSKBMODE, opt);
17 + /* double cast prevents warnings about widening conversion */
18 + xioctl(fd, KDSKBMODE, (void*)(ptrdiff_t)opt);
21 if (ENABLE_FEATURE_CLEAN_UP)