Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From 5c6df55004338b0468e43688e9503e6acd15d6f6 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Fri, 5 Mar 2021 21:50:36 +0000 >Subject: [PATCH] keymap.c: fix an error the compiler reported keymap.c: In function 'key_name': keymap.c:833:33: error: 'uint' undeclared (first use in this function); did you mean 'int'? 833 | snprintf(buf, NBUF, "0x%02x", (uint)c); | ^~~~ | int keymap.c:833:33: note: each undeclared identifier is reported only once for each function it appears in keymap.c:833:38: error: expected ')' before 'c' 833 | snprintf(buf, NBUF, "0x%02x", (uint)c); | ^ | ) #### Change "uint" to "unsigned int". Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keymap.c b/keymap.c index fee9bbf..1cb0011 100644 --- a/keymap.c +++ b/keymap.c @@ -830,7 +830,7 @@ key_name(key_type c) goto out; } if (data_bits < 8 && c >= NORMAL_KEYS) { - snprintf(buf, NBUF, "0x%02x", (uint)c); + snprintf(buf, NBUF, "0x%02x", (unsigned int) c); goto out; } buf[0] = c; -- 2.30.1 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.9-1 (SMP w/2 CPU threads) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- debconf information excluded -- Bjarni I. Gislason