(apr_time_sec(info->expire - info->date)) > age))) {
/* make sure we don't stomp on a previous warning */
if ((warn_head == NULL) ||
- ((warn_head != NULL) && (ap_strstr_c(warn_head, "110") == NULL))) {
+ (ap_strstr_c(warn_head, "110") == NULL)) {
apr_table_mergen(h->resp_hdrs, "Warning",
"110 Response is stale");
}
* the new warning to the correct *headers_out location.
*/
if ((warn_head == NULL) ||
- ((warn_head != NULL) && (ap_strstr_c(warn_head, "113") == NULL))) {
+ (ap_strstr_c(warn_head, "113") == NULL)) {
apr_table_mergen(h->resp_hdrs, "Warning",
"113 Heuristic expiration");
}
/* make sure we don't stomp on a previous warning */
warn_head = apr_table_get(h->resp_hdrs, "Warning");
if ((warn_head == NULL) ||
- ((warn_head != NULL) && (ap_strstr_c(warn_head, "110") == NULL))) {
+ (ap_strstr_c(warn_head, "110") == NULL)) {
apr_table_mergen(h->resp_hdrs, "Warning",
"110 Response is stale");
}
/* add a revalidation warning */
warn_head = apr_table_get(r->err_headers_out, "Warning");
- if ((warn_head == NULL) || ((warn_head != NULL)
- && (ap_strstr_c(warn_head, "111") == NULL))) {
+ if ((warn_head == NULL) ||
+ (ap_strstr_c(warn_head, "111") == NULL)) {
apr_table_mergen(r->err_headers_out, "Warning",
"111 Revalidation failed");
}
/* add a revalidation warning */
warn_head = apr_table_get(r->err_headers_out, "Warning");
- if ((warn_head == NULL) || ((warn_head != NULL)
- && (ap_strstr_c(warn_head, "111") == NULL))) {
+ if ((warn_head == NULL)
+ || ap_strstr_c(warn_head, "111") == NULL) {
apr_table_mergen(r->err_headers_out, "Warning",
"111 Revalidation failed");
}
++*args; /* move past leading " */
/* find true end of args string (accounting for escaped quotes) */
- while (**args && (**args != '"' || (**args == '"' && escaping))) {
+ while (**args && (**args != '"' || escaping)) {
if (escaping) {
escaping = 0;
}
/* If we got an instance id but it doesn't match this
instance of the nlm, pass it on. */
if (pID) {
- pID = &pID[2];
- while (*pID && (*pID == ' '))
+ pID += 2;
+ while (*pID == ' ')
pID++;
}
if (pID && ap_my_addrspace && strnicmp(pID, ap_my_addrspace, strlen(ap_my_addrspace)))
break;
if (*strend == '{')
++count;
- if (*strend == '\\' && strend[1] && strend[1] == '\\') {
+ if (*strend == '\\' && strend[1] == '\\') {
++strend;
}
++strend;
(APR_BRIGADE_EMPTY(bb) ? "empty" : "full"),
f->frec->name);
- if (f->bb && !APR_BRIGADE_EMPTY(f->bb)) {
+ if (f->bb) {
APR_BRIGADE_PREPEND(bb, f->bb);
}
if (!flush_upto) {