test: fix -Wformat warning

Substitute the `z` length modifier with `l` to avoid warnings, as the
`z` modifier is defined in the C99 standard.

PR-URL: https://github.com/libuv/libuv/pull/1220
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
Santiago Gimeno 2017-02-07 18:03:20 +01:00
parent c355c8b1a6
commit 309d603382
No known key found for this signature in database
GPG Key ID: F28C3C8DA33C03BE

View File

@ -60,7 +60,10 @@ static void saturate_threadpool(void) {
char buf[64];
size_t i;
snprintf(buf, sizeof(buf), "UV_THREADPOOL_SIZE=%zu", ARRAY_SIZE(pause_reqs));
snprintf(buf,
sizeof(buf),
"UV_THREADPOOL_SIZE=%lu",
(unsigned long)ARRAY_SIZE(pause_reqs));
putenv(buf);
loop = uv_default_loop();