From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.5 X-Virus-Scanned: Debian amavisd-new at pp.htv.fi From: Aaro Koskinen To: Alexey Gladkov , kbd@lists.altlinux.org Date: Sat, 15 Mar 2014 01:32:56 +0200 Message-Id: <1394839976-18297-1-git-send-email-aaro.koskinen@iki.fi> X-Mailer: git-send-email 1.9.0 X-Mailman-Approved-At: Sat, 15 Mar 2014 13:28:18 +0400 Cc: Aaro Koskinen Subject: [kbd] [PATCH] libkeymap: fix kmap on big-endian machines X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Mar 2014 23:31:26 -0000 Archived-At: List-Archive: Currently "loadkeys" does not work properly (no keys are ever changed) on big-endian machines (e.g. SPARC and other classic hardware) due to incorrect typing. The patch fixes this. Signed-off-by: Aaro Koskinen --- src/libkeymap/kmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkeymap/kmap.c b/src/libkeymap/kmap.c index e529136..85a3bb3 100644 --- a/src/libkeymap/kmap.c +++ b/src/libkeymap/kmap.c @@ -37,7 +37,7 @@ int lk_key_exists(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index) { struct lk_array *map; - u_short *key; + unsigned int *key; map = lk_array_get_ptr(ctx->keymap, k_table); if (!map) { -- 1.9.0