Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From 7f2eda3b84849a2bbe9e565c99bdebd7e8897f48 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Sat, 13 Mar 2021 20:09:32 +0000 >Subject: [PATCH] term.c: use "NULL" for comparisons with pointers, not "NUL" term.c:1743:18: warning: comparison between pointer and zero character constant [-Wpointer-compare] 1743 | if (mk->cur_key == NUL) Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/term.c b/term.c index 088c9f5..b756644 100644 --- a/term.c +++ b/term.c @@ -1740,10 +1740,10 @@ multi: multi_match = NULL; for (i = multi_keys, mk = multi_key_list; --i >= 0; mk++) { - if (mk->cur_key == NUL) + if (mk->cur_key == NULL) continue; if (*(mk->cur_key)++ != c) { - mk->cur_key = NUL; + mk->cur_key = NULL; continue; } if (*(mk->cur_key) == NUL) { -- 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.19-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