From 3cfc0b54c43d1cc26e818b19042bd66d912656bd Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 30 Apr 2022 20:13:38 -0500 Subject: [PATCH] Silence gcc warning that two 32 bit integers are identical. (This warning is not generated on 64 bit targets, where two 64 bit integers are identical.) --- toys/net/wget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/net/wget.c b/toys/net/wget.c index 75632646..2b0eacf4 100644 --- a/toys/net/wget.c +++ b/toys/net/wget.c @@ -243,7 +243,7 @@ void wget_main(void) // Connect and write request wget_info(TT.url, &host, &port, &path); - if (TT.p) sprintf(toybuf, "Content-Length: %ld\r\n", strlen(TT.p)); + if (TT.p) sprintf(toybuf, "Content-Length: %ld\r\n", (long)strlen(TT.p)); ss = xmprintf("%s /%s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\n" "Connection: close\r\n%s\r\n%s", FLAG(p) ? "POST" : "GET", path, host, agent, FLAG(p) ? toybuf : "", FLAG(p)?TT.p:""); -- 2.39.2