aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/901-kbdmode.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-09-22 12:36:13 +0000
committerNicolas Thill <nico@openwrt.org>2008-09-22 12:36:13 +0000
commit2219c8b27fd32c014061600098b0d8956fd3b882 (patch)
tree0e0744aeefb50e7a790704d94d293d5c46bfe4fb /package/busybox/patches/901-kbdmode.patch
parent5d45133fc27115d491740cdbe03b1af1eed43fed (diff)
downloadupstream-2219c8b27fd32c014061600098b0d8956fd3b882.tar.gz
upstream-2219c8b27fd32c014061600098b0d8956fd3b882.tar.bz2
upstream-2219c8b27fd32c014061600098b0d8956fd3b882.zip
upgrade busybox to v1.11.2 and add current upstream fixes
SVN-Revision: 12648
Diffstat (limited to 'package/busybox/patches/901-kbdmode.patch')
-rw-r--r--package/busybox/patches/901-kbdmode.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/busybox/patches/901-kbdmode.patch b/package/busybox/patches/901-kbdmode.patch
new file mode 100644
index 0000000000..c668d62c38
--- /dev/null
+++ b/package/busybox/patches/901-kbdmode.patch
@@ -0,0 +1,21 @@
+--- a/console-tools/kbd_mode.c
++++ b/console-tools/kbd_mode.c
+@@ -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)