commit 48e08051e54efc8e9b275a137506e6d4c2fcee52 from: Omar Polo date: Sun Sep 25 22:13:16 2022 UTC fix how int64_t is print in parse.y commit - 2579ff9088deae6ef0cdb3a0f3fe0d04e7d7718a commit + 48e08051e54efc8e9b275a137506e6d4c2fcee52 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;