[master] b37f7e922 More correct typing for Coverity.

Poul-Henning Kamp phk at FreeBSD.org
Tue Jun 25 06:26:05 UTC 2024


commit b37f7e92297bbeb5a55b0404479046101b993261
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Jun 25 06:23:34 2024 +0000

    More correct typing for Coverity.

diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index d54e86e10..fa6d78084 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -169,7 +169,7 @@ http_write(const struct http *hp, int lvl,
 }
 
 static int
-get_bytes(const struct http *hp, char *buf, int n)
+get_bytes(const struct http *hp, char *buf, size_t n)
 {
 	int i;
 	struct pollfd pfd[1];
@@ -197,7 +197,7 @@ get_bytes(const struct http *hp, char *buf, int n)
 		i = read(hp->sess->fd, buf, n);
 		if (!(pfd[0].revents & POLLIN))
 			vtc_log(hp->vl, 4,
-			    "HTTP2 rx poll (fd:%d revents: %x n=%d, i=%d)",
+			    "HTTP2 rx poll (fd:%d revents: %x n=%zu, i=%d)",
 			    hp->sess->fd, pfd[0].revents, n, i);
 		if (i == 0)
 			vtc_log(hp->vl, 3,


More information about the varnish-commit mailing list