aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-05 15:30:24 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-05 15:30:24 +0000
commit3e7eca97b987b351c6f68308c6e0c421541f10c8 (patch)
treef1ba408bbad3edea1c74febb1d1547c1d24a4e6b
parent9e6fe061d47a4776c8b89aaa0a7fe2e9219da34e (diff)
downloadbusybox-3e7eca97b987b351c6f68308c6e0c421541f10c8.tar.gz
busybox-3e7eca97b987b351c6f68308c6e0c421541f10c8.tar.bz2
- sync with trunk
-rw-r--r--console-tools/kbd_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console-tools/kbd_mode.c b/console-tools/kbd_mode.c
index 4de3bb650..f40ee6403 100644
--- a/console-tools/kbd_mode.c
+++ b/console-tools/kbd_mode.c
@@ -46,7 +46,7 @@ int kbd_mode_main(int ATTRIBUTE_UNUSED argc, char **argv)
printf("The keyboard is in %s mode\n", mode);
} else {
opt = opt & UNICODE ? 3 : opt >> 1;
- xioctl(fd, KDSKBMODE, opt);
+ xioctl(fd, KDSKBMODE, (void*)(ptrdiff_t)opt);
}
if (ENABLE_FEATURE_CLEAN_UP)