]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Merge pull request #593 from Komzpa/darafei/static-analysis-fixes
authorRoger Wolff <R.E.Wolff@BitWizard.nl>
Fri, 8 May 2026 12:17:10 +0000 (14:17 +0200)
committerGitHub <noreply@github.com>
Fri, 8 May 2026 12:17:10 +0000 (14:17 +0200)
fix: address static analyzer findings

1  2 
packet/probe.c
ui/dns.c
ui/mtr.c
ui/report.c

diff --cc packet/probe.c
index 904f0d129bf7d1d7f4fd6d0fc3b565e8c4d6a4db,61c1912ee029b9e8cb20bc04e9f5825a040b1d8e..846f3b1ac45733a85982baf151df37ef60bd626c
@@@ -282,13 -285,9 +284,13 @@@ void respond_to_probe
      }
  
      snprintf(response, COMMAND_BUFFER_SIZE,
-              "%d %s %s %s round-trip-time %d",
+              "%d %s %s %s round-trip-time %u",
               probe->token, result, ip_argument, ip_text, round_trip_us);
  
 +#if 0
 +// This is the old code. I think the new code should do the same, but to be
 +// sure, I want one commit with both versions side-by-side. 
 +    int remaining_size;
      if (mpls_count) {
          format_mpls_string(mpls_str, COMMAND_BUFFER_SIZE, mpls_count,
                             mpls);
diff --cc ui/dns.c
Simple merge
diff --cc ui/mtr.c
Simple merge
diff --cc ui/report.c
Simple merge