diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-28 20:40:02 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-28 20:40:02 +0400 |
commit | 4a81fe4173bf5029058253cf0be194c23a5ad369 (patch) | |
tree | 0806d2c3d6df92784c407221d862b9956c9ea115 /console-tools | |
parent | 3e7eca97b987b351c6f68308c6e0c421541f10c8 (diff) |
apply post-1.11.2 fixes, bump version to 1.11.31_11_31_11_stable
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/kbd_mode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/console-tools/kbd_mode.c b/console-tools/kbd_mode.c index f40ee6403..2137d9f47 100644 --- 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,6 +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; + /* double cast prevents warnings about widening conversion */ xioctl(fd, KDSKBMODE, (void*)(ptrdiff_t)opt); } |