]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix const signedness issue in VG_(show_open_fds)
authorMark Wielaard <mark@klomp.org>
Fri, 19 Apr 2024 14:59:25 +0000 (16:59 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 19 Apr 2024 14:59:30 +0000 (16:59 +0200)
The colon variable should be a const HChar.

coregrind/m_syswrap/syswrap-generic.c

index 3c4846adefcd6008d934096e27949c6b36fef1a0..625cd639ef5631bf5129ff719539906bcb17b0ee 100644 (file)
@@ -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);