From 2219c8b27fd32c014061600098b0d8956fd3b882 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 22 Sep 2008 12:36:13 +0000 Subject: upgrade busybox to v1.11.2 and add current upstream fixes SVN-Revision: 12648 --- package/busybox/patches/901-kbdmode.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/busybox/patches/901-kbdmode.patch (limited to 'package/busybox/patches/901-kbdmode.patch') 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é ++ * Copyright (C) 2007 Loic Grenie + * written using Andries Brouwer '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) -- cgit v1.2.3