diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-09-09 08:50:18 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-09-09 08:50:18 +0000 |
commit | 32217740f29ff034d0f247e6653eec78c6930e80 (patch) | |
tree | fe48d8207e24e1129ef2a34b669628af5cc748c1 /package/busybox/busybox-1.11.2-kbdmode.patch | |
parent | 629c878a300d47215efcc6bdbb16e484c6b0a340 (diff) |
busybox: 1.11.2 patch
Diffstat (limited to 'package/busybox/busybox-1.11.2-kbdmode.patch')
-rw-r--r-- | package/busybox/busybox-1.11.2-kbdmode.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.11.2-kbdmode.patch b/package/busybox/busybox-1.11.2-kbdmode.patch new file mode 100644 index 000000000..5c597f299 --- /dev/null +++ b/package/busybox/busybox-1.11.2-kbdmode.patch @@ -0,0 +1,21 @@ +--- busybox-1.11.2/console-tools/kbd_mode.c Thu Aug 21 21:40:12 2008 ++++ busybox-1.11.2-kbdmode/console-tools/kbd_mode.c Wed Sep 3 23:52:26 2008 +@@ -2,7 +2,7 @@ + /* + * Mini kbd_mode implementation for busybox + * +- * Copyright (C) 2007 Loïc Grenié <loic.grenie@gmail.com> ++ * Copyright (C) 2007 Loic Grenie <loic.grenie@gmail.com> + * written using Andries Brouwer <aeb@cwi.nl>'s kbd_mode from + * console-utils v0.2.3, licensed under GNU GPLv2 + * +@@ -46,7 +46,8 @@ + printf("The keyboard is in %s mode\n", mode); + } else { + opt = opt & UNICODE ? 3 : opt >> 1; +- xioctl(fd, KDSKBMODE, opt); ++ /* double cast prevents warnings about widening conversion */ ++ xioctl(fd, KDSKBMODE, (void*)(ptrdiff_t)opt); + } + + if (ENABLE_FEATURE_CLEAN_UP) |