Mailing List Archive

[6.0] 009c6753d Fix compilation under macos
commit 009c6753d5c35eadd9c49341d9fe70fa8b48245c
Author: Federico G. Schwindt <fgsch@lodoss.net>
Date: Sun May 10 20:46:15 2020 +0100

Fix compilation under macos

diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index 42f2995a1..4893c20df 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -58,18 +58,18 @@ VRT_synth(VRT_CTX, VCL_INT code, VCL_STRING reason)
assert(ctx->req != NULL || ctx->bo != NULL);
if (code < 0) {
VRT_fail(ctx, "return(synth()) status code (%jd) is negative",
- code);
+ (intmax_t)code);
return;
}
if (code > 65535) {
VRT_fail(ctx, "return(synth()) status code (%jd) > 65535",
- code);
+ (intmax_t)code);
return;
}
if ((code % 1000) < 100) {
VRT_fail(ctx,
"illegal return(synth()) status code (%jd) (..0##)",
- code);
+ (intmax_t)code);
return;
}

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit