Date: Wed, 18 Feb 2026 13:01:12 +0100 From: Frank Lichtenheld Message-ID: References: MIME-Version: 1.0 In-Reply-To: Subject: Re: [Openvpn-devel] [PATCH v2 2/2] ntlm: fix discards 'const' qualifier from pointer target type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline To: Rudi Heitbaum Cc: openvpn-devel@lists.sourceforge.net On Mon, Feb 16, 2026 at 12:07:49PM +0000, Rudi Heitbaum via Openvpn-devel wrote: > Since glibc-2.43: > > For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, > strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers > into their input arrays now have definitions as macros that return a > pointer to a const-qualified type when the input argument is a pointer > to a const-qualified type. > > fixes: > src/openvpn/ntlm.c: In function 'ntlm_phase_3': > src/openvpn/ntlm.c:241:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > 241 | separator = strchr(p->up.username, '\\'); > | ^ > > Signed-off-by: Rudi Heitbaum > --- > src/openvpn/ntlm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Frank Lichtenheld https://gerrit.openvpn.net/c/openvpn/+/1546 Regards, -- Frank Lichtenheld