cbdata_type type;
#if CBDATA_DEBUG
- void addHistory(char const *label, char const *file, int line) {
+ void addHistory(char const *label, char const *aFile, int aLine) {
if (calls.size() > 1000)
return;
- calls.push_back(new CBDataCall(label, file, line));
+ calls.push_back(new CBDataCall(label, aFile, aLine));
}
dlink_node link;
/* cookie used while debugging */
long cookie;
- void check(int line) const {assert(cookie == ((long)this ^ Cookie));}
+ void check(int aLine) const {assert(cookie == ((long)this ^ Cookie));}
static const long Cookie;
#if !HASHED_CBDATA
HttpReply *old_rep = (HttpReply *) old_entry->getReply();
// origin replied 304
-
+ // TODO FIXME: old_rep2 was forcibly unshadowed, used to be old_rep. Are we sure
+ // that the right semantics were preserved?
if (status == HTTP_NOT_MODIFIED) {
http->logType = LOG_TCP_REFRESH_UNMODIFIED;
// update headers on existing entry
- HttpReply *old_rep = (HttpReply *) old_entry->getReply();
- old_rep->updateOnNotModified(http->storeEntry()->getReply());
+ HttpReply *old_rep2 = (HttpReply *) old_entry->getReply();
+ old_rep2->updateOnNotModified(http->storeEntry()->getReply());
old_entry->timestampsSet();
// if client sent IMS
} else {
// send existing entry, it's still valid
debugs(88, 3, "handleIMSReply: origin replied 304, revalidating existing entry and sending " <<
- old_rep->sline.status << " to client");
+ old_rep2->sline.status << " to client");
sendClientOldEntry();
}
}
* prepared in the kernel by the ZPH incoming TCP TOS preserving
* patch.
*/
- unsigned char * p = buf;
- while (p-buf < len) {
- struct cmsghdr *o = (struct cmsghdr*)p;
+ unsigned char * pbuf = buf;
+ while (pbuf-buf < len) {
+ struct cmsghdr *o = (struct cmsghdr*)pbuf;
if (o->cmsg_len<=0)
break;
clientFde->upstreamTOS = (unsigned char)(*(int*)CMSG_DATA(o));
break;
}
- p += CMSG_LEN(o->cmsg_len);
+ pbuf += CMSG_LEN(o->cmsg_len);
}
} else {
debugs(33, 1, "ZPH: error in getsockopt(IP_PKTOPTIONS) on FD "<<server_fd<<" "<<xstrerror());