libboost/libboost-1.35.0-hcache.patch

27 lines
926 B
Diff

--- boost_1_35_0/tools/jam/src/hcache.c 2006-09-07 05:57:02.000000000 +0200
+++ boost_1_35_0-gil/tools/jam/src/hcache.c 2008-07-21 11:53:01.000000000 +0200
@@ -162,7 +162,7 @@
{
if (!s)
s = "";
- fprintf(f, "%lu\t%s\n", strlen(s), s);
+ fprintf(f, "%lu\t%s\n", (unsigned long) strlen(s), s);
}
void
@@ -314,10 +314,10 @@
else if (c->age > maxage)
continue;
- sprintf(includes_count_str, "%lu", list_length(c->includes));
- sprintf(hdrscan_count_str, "%lu", list_length(c->hdrscan));
- sprintf(time_str, "%lu", c->time);
- sprintf(age_str, "%lu", c->age);
+ sprintf(includes_count_str, "%lu", (unsigned long) list_length(c->includes));
+ sprintf(hdrscan_count_str, "%lu", (unsigned long) list_length(c->hdrscan));
+ sprintf(time_str, "%lu", (unsigned long) c->time);
+ sprintf(age_str, "%lu", (unsigned long) c->age);
write_netstring(f, CACHE_RECORD_HEADER);
write_netstring(f, c->boundname);