[master] 0ea64396b Fix compilation under macos

Federico G. Schwindt fgsch at lodoss.net
Sun May 10 19:51:09 UTC 2020


commit 0ea64396b64b1dba6cf0930d9e4c395b5dd6cfbc
Author: Federico G. Schwindt <fgsch at 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 1d8bac59d..619ba4d27 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -64,18 +64,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;
 	}
 


More information about the varnish-commit mailing list