Commit Diff


commit - 31f73b2e2ae353563a0cf45d2350d1ccafadd306
commit + 044f7af7d6bad7ffcf97aa37e31405dec90cdf61
blob - a770e3644a96576c184dc3bcd0d7139a55e5c804
blob + 9142ddbd170dd30e5af45d3553869ded41b37c87
--- gotd/parse.y
+++ gotd/parse.y
@@ -253,7 +253,8 @@ conflags_l	: conflags optnl conflags_l
 
 conflags	: REQUEST TIMEOUT timeout		{
 			if ($3.tv_sec <= 0) {
-				yyerror("invalid timeout: %lld", $3.tv_sec);
+				yyerror("invalid timeout: %lld",
+				    (long long)$3.tv_sec);
 				YYERROR;
 			}
 			memcpy(&gotd->request_timeout, &$3,