upgrade busybox to v1.11.2 and add current upstream fixes
[openwrt.git] / package / busybox / patches / 901-kbdmode.patch
1 --- a/console-tools/kbd_mode.c
2 +++ b/console-tools/kbd_mode.c
3 @@ -2,7 +2,7 @@
4 /*
5 * Mini kbd_mode implementation for busybox
6 *
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
11 *
12 @@ -46,7 +46,8 @@
13 printf("The keyboard is in %s mode\n", mode);
14 } else {
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);
19 }
20
21 if (ENABLE_FEATURE_CLEAN_UP)
This page took 0.037305 seconds and 5 git commands to generate.