From: Mark Wielaard Date: Fri, 19 Apr 2024 14:59:25 +0000 (+0200) Subject: Fix const signedness issue in VG_(show_open_fds) X-Git-Tag: VALGRIND_3_23_0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71c8bce593658df2f7fffb499dd649ed3293355b;p=thirdparty%2Fvalgrind.git Fix const signedness issue in VG_(show_open_fds) The colon variable should be a const HChar. --- diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c index 3c4846ade..625cd639e 100644 --- a/coregrind/m_syswrap/syswrap-generic.c +++ b/coregrind/m_syswrap/syswrap-generic.c @@ -967,7 +967,7 @@ void VG_(show_open_fds) (const HChar* when) if (VG_(getsockopt)(i->fd, VKI_SOL_SOCKET, VKI_SO_TYPE, &val, &len) == -1) { /* Don't want the : at the end in xml */ - UChar *colon = VG_(clo_xml) ? "" : ":"; + const HChar *colon = VG_(clo_xml) ? "" : ":"; VG_(sprintf)(i->description, "file descriptor %d%s", i->fd, colon); } else { getsockdetails(i->fd, 256, i->description);