commit - 2579ff9088deae6ef0cdb3a0f3fe0d04e7d7718a
commit + 48e08051e54efc8e9b275a137506e6d4c2fcee52
blob - 469d5c76f7453d9418c18161b00f017ca376738f
blob + b20e39fe4baee1766139dfc9bf4ba168deea7340
--- parse.y
+++ parse.y
#include <err.h>
#include <event.h>
+#include <inttypes.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
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;
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;