From 3e7eca97b987b351c6f68308c6e0c421541f10c8 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 5 Sep 2008 15:30:24 +0000 Subject: [PATCH] - sync with trunk --- console-tools/kbd_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1