return apr_pstrndup(p, list, i);
else
return NULL;
-
}
/*
char * temp;
if(!info->hdrsfile) {
- return APR_NOTFOUND;
+ return APR_NOTFOUND;
}
/* read the data from the cache file */
* dates are stored as hex seconds since 1970
*/
rv = apr_file_gets(&urlbuff[0], urllen, fd);
- if (rv != APR_SUCCESS)
- {
- return rv;
+ if (rv != APR_SUCCESS) {
+ return rv;
}
if ((temp = strchr(&urlbuff[0], '\n')) != NULL) /* trim off new line character */
- *temp = '\0'; /* overlay it with the null terminator */
+ *temp = '\0'; /* overlay it with the null terminator */
- if (!apr_date_checkmask(urlbuff, "&&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&&"))
- {
+ if (!apr_date_checkmask(urlbuff, "&&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&&")) {
return APR_EGENERAL;
}
/* check that we have the same URL */
rv = apr_file_gets(&urlbuff[0], urllen, fd);
- if (rv != APR_SUCCESS)
- {
- return rv;
+ if (rv != APR_SUCCESS) {
+ return rv;
}
- if ((temp = strchr(&urlbuff[0], '\n')) != NULL) /* trim off new line character */
- *temp = '\0'; /* overlay it with the null terminator */
+ if ((temp = strchr(&urlbuff[0], '\n')) != NULL) { /* trim off new line character */
+ *temp = '\0'; /* overlay it with the null terminator */
+ }
- if (strncmp(urlbuff, "X-NAME: ", 7) != 0)
- {
- return APR_EGENERAL;
+ if (strncmp(urlbuff, "X-NAME: ", 7) != 0) {
+ return APR_EGENERAL;
}
- if (strcmp(urlbuff + 8, info->name) != 0)
- {
+ if (strcmp(urlbuff + 8, info->name) != 0) {
return APR_EGENERAL;
}