summaryrefslogtreecommitdiffhomepage
path: root/console-tools
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-09-28 16:44:28 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-09-28 16:44:28 +0000
commit651d49a2ce5733672b676a02c5960b296cb4fb2d (patch)
treea1c499cb5cef963096024629443b25d2269cbb3e /console-tools
parent2b2d97705701f8a0c8a46313bad429582d906d81 (diff)
showkey: suppress gcc warning
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/showkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/showkey.c b/console-tools/showkey.c
index ee9318084..681114df7 100644
--- a/console-tools/showkey.c
+++ b/console-tools/showkey.c
@@ -50,7 +50,7 @@ static void signal_handler(int signo)
{
// restore keyboard and console settings
xset1(STDIN_FILENO, &tio0, "stdin");
- xioctl(STDIN_FILENO, KDSKBMODE, (void *)kbmode);
+ xioctl(STDIN_FILENO, KDSKBMODE, (void *)(ptrdiff_t)kbmode);
// alarmed? -> exit 0
exit(SIGALRM == signo);
}
@@ -95,7 +95,7 @@ int showkey_main(int argc UNUSED_PARAM, char **argv)
// we should exit on any signal
bb_signals(BB_FATAL_SIGS, signal_handler);
// set raw keyboard mode
- xioctl(STDIN_FILENO, KDSKBMODE, (void *)((option_mask32 & OPT_k) ? K_MEDIUMRAW : K_RAW));
+ xioctl(STDIN_FILENO, KDSKBMODE, (void *)(ptrdiff_t)((option_mask32 & OPT_k) ? K_MEDIUMRAW : K_RAW));
// read and show scancodes
while (1) {