commit 65015347b003ddd22461c5ce282c2a3070b53eae from: Omar Polo date: Thu Sep 29 08:47:28 2022 UTC fix how int64_t is print in parse.y commit - 4a367fcdec21bc12e243220a62005996ad607ab7 commit + 65015347b003ddd22461c5ce282c2a3070b53eae blob - 469d5c76f7453d9418c18161b00f017ca376738f blob + b20e39fe4baee1766139dfc9bf4ba168deea7340 --- parse.y +++ parse.y @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -155,7 +156,7 @@ varset : STRING '=' STRING { main : PREFORK NUMBER { if ($2 <= 0 || $2 > PROC_MAX_INSTANCES) { yyerror("invalid number of preforked " - "proxies: %lld", $2); + "proxies: %"PRId64, $2); YYERROR; } conf->sc_prefork = $2; @@ -258,14 +259,15 @@ proxyport : /* empty */ { int n; len = sizeof(pr->pr_conf.proxy_port); - n = snprintf(pr->pr_conf.proxy_port, len, "%lld", $2); + n = snprintf(pr->pr_conf.proxy_port, len, + "%"PRId64, $2); if (n < 0 || (size_t)n >= len) fatal("port number too long?"); }; port : NUMBER { if ($1 <= 0 || $1 > (int)USHRT_MAX) { - yyerror("invalid port: %lld", $1); + yyerror("invalid port: %"PRId64, $1); YYERROR; } $$ = $1;