void ICAPModXact::openChunk(MemBuf &buf, size_t chunkSize)
{
- buf.Printf("%x\r\n", chunkSize);
+ buf.Printf("%x\r\n", (int) chunkSize);
}
void ICAPModXact::closeChunk(MemBuf &buf, bool ieof)
encapsulateHead(buf, "res-hdr", httpBuf, prime);
if (!virginBody.expected())
- buf.Printf("null-body=%d", httpBuf.contentSize());
+ buf.Printf("null-body=%d", (int) httpBuf.contentSize());
else if (ICAP::methodReqmod == m)
- buf.Printf("req-body=%d", httpBuf.contentSize());
+ buf.Printf("req-body=%d", (int) httpBuf.contentSize());
else
- buf.Printf("res-body=%d", httpBuf.contentSize());
+ buf.Printf("res-body=%d", (int) httpBuf.contentSize());
buf.append(ICAP::crlf, 2); // terminate Encapsulated line
void ICAPModXact::encapsulateHead(MemBuf &icapBuf, const char *section, MemBuf &httpBuf, const HttpMsg *head)
{
// update ICAP header
- icapBuf.Printf("%s=%d,", section, httpBuf.contentSize());
+ icapBuf.Printf("%s=%d,", section, (int) httpBuf.contentSize());
// pack HTTP head
packHead(httpBuf, head);
if (preview.enabled()) {
if (!preview.done())
- buf.Printf("P(%d)", preview.debt());
+ buf.Printf("P(%d)", (int) preview.debt());
}
if (virginSendClaim.active())
/*
- * $Id: http.cc,v 1.467 2005/11/21 23:29:08 wessels Exp $
+ * $Id: http.cc,v 1.468 2005/11/24 00:54:15 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
HttpStateData::takeAdaptedBody(MemBuf *buf)
{
debug(11,5)("HttpStateData::takeAdaptedBody() called\n");
- debug(11,5)("\t%d bytes\n", buf->contentSize());
+ debug(11,5)("\t%d bytes\n", (int) buf->contentSize());
debug(11,5)("\t%d is current offset\n", (int)currentOffset);
if (!entry->isAccepting()) {