section 57 HTTP Status-line
section 58 HTTP Reply (Response)
section 59 auto-growing Memory Buffer with printf
-section 60 Packer: A uniform interface to store-like modules
section 61 Redirector
section 62 Generic Histogram
section 63 Low Level Memory Pool Management
/* print option name */
p->appendf((pcount ? ", " SQUIDSTRINGPH : SQUIDSTRINGPH),
- SQUIDSTRINGPRINT(ScFieldsInfo[flag].name));
+ SQUIDSTRINGPRINT(ScFieldsInfo[flag].name));
/* handle options with values */
/* Which can be used by EITHER protocol. */
debugs(9, 3, "Listening for FTP data connection on port" << comm_local_port(data.conn->fd) << " or port?" << data.conn->local.port());
mb.appendf("EPRT |%d|%s|%d|%s",
- ( data.conn->local.isIPv6() ? 2 : 1 ),
- data.conn->local.toStr(buf,MAX_IPSTRLEN),
- comm_local_port(data.conn->fd), Ftp::crlf );
+ ( data.conn->local.isIPv6() ? 2 : 1 ),
+ data.conn->local.toStr(buf,MAX_IPSTRLEN),
+ comm_local_port(data.conn->fd), Ftp::crlf );
state = SENT_EPRT;
writeCommand(mb.content());
html = new MemBuf();
html->init();
html->appendf("<tr class=\"entry\">"
- "<td class=\"icon\"><a href=\"%s%s\">%s</a></td>"
- "<td class=\"filename\"><a href=\"%s%s\">%s</a></td>"
- "<td class=\"date\">%s</td>"
- "<td class=\"size\">%s</td>"
- "<td class=\"actions\">%s%s%s%s</td>"
- "</tr>\n",
- prefix, href, icon,
- prefix, href, html_quote(text),
- parts->date,
- size,
- chdir, view, download, link);
+ "<td class=\"icon\"><a href=\"%s%s\">%s</a></td>"
+ "<td class=\"filename\"><a href=\"%s%s\">%s</a></td>"
+ "<td class=\"date\">%s</td>"
+ "<td class=\"size\">%s</td>"
+ "<td class=\"actions\">%s%s%s%s</td>"
+ "</tr>\n",
+ prefix, href, icon,
+ prefix, href, html_quote(text),
+ parts->date,
+ size,
+ chdir, view, download, link);
ftpListPartsFree(&parts);
return html;
MemBuf mb;
mb.init();
mb.appendf("227 Entering Passive Mode (%s,%i,%i).\r\n",
- addr,
- static_cast<int>(localPort / 256),
- static_cast<int>(localPort % 256));
+ addr,
+ static_cast<int>(localPort / 256),
+ static_cast<int>(localPort % 256));
debugs(9, 3, Raw("writing", mb.buf, mb.size));
writeReply(mb);
}
if (request->errDetail > 0) {
// XXX: > 0 may not always mean that this is an errno
mb.appendf("%i-Error: (%d) %s\r\n", scode,
- request->errDetail,
- strerror(request->errDetail));
+ request->errDetail,
+ strerror(request->errDetail));
}
#if USE_ADAPTATION
if (header.has(HDR_FTP_STATUS)) {
const char *reason = header.getStr(HDR_FTP_REASON);
mb.appendf("%i %s\r\n", header.getInt(HDR_FTP_STATUS),
- (reason ? reason : 0));
+ (reason ? reason : 0));
}
}
mb = new MemBuf;
mb->init();
mb->appendf( "<TITLE>Select URL for %s</TITLE>\n"
- "<STYLE type=\"text/css\"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}--></STYLE>\n"
- "<H2>Select URL for %s</H2>\n"
- "<TABLE BORDER=\"0\" WIDTH=\"100%%\">\n", e->url(), e->url());
+ "<STYLE type=\"text/css\"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}--></STYLE>\n"
+ "<H2>Select URL for %s</H2>\n"
+ "<TABLE BORDER=\"0\" WIDTH=\"100%%\">\n", e->url(), e->url());
for (i = 0; i < urlcnt; ++i) {
u = &urls[i];