From: Marco d'Itri <md@linux.it>
Subject: fix format errors on 32 bit targets

--- a/bin/vinyld/cache/cache_http.c
+++ b/bin/vinyld/cache/cache_http.c
@@ -1052,7 +1052,7 @@ http_GetContentLength(struct http *hp)
 
 	if (cl >= 0 && need) {
 		// we have deleted all headers above
-		http_PrintfHeader(hp, "Content-Length: %jd", cl);
+		http_PrintfHeader(hp, "Content-Length: %zd", cl);
 	}
 
 	return (cl);
--- a/lib/libvinyl/vtim.c
+++ b/lib/libvinyl/vtim.c
@@ -584,7 +584,7 @@ tstf(time_t t, const char *s)
 
 	VTIM_format(t, buf);
 	if (strcmp(s, buf)) {
-		printf("VTIM_format(%zd) error\nwant:\t%s\ngot:\t%s\n",
+		printf("VTIM_format(%ld) error\nwant:\t%s\ngot:\t%s\n",
 		    t, s, buf);
 		exit(4);
 	}
