| 1061 | } |
| 1062 | |
| 1063 | AP_DECLARE(const char *) ap_pcfg_strerror(apr_pool_t *p, ap_configfile_t *cfp, |
| 1064 | apr_status_t rc) |
| 1065 | { |
| 1066 | if (rc == APR_SUCCESS) |
| 1067 | return NULL; |
| 1068 | |
| 1069 | if (rc == APR_ENOSPC) |
| 1070 | return apr_psprintf(p, "Error reading %s at line %d: Line too long", |
| 1071 | cfp->name, cfp->line_number); |
| 1072 | |
| 1073 | return apr_psprintf(p, "Error reading %s at line %d: %pm", |
| 1074 | cfp->name, cfp->line_number, &rc); |
| 1075 | } |
| 1076 | |
| 1077 | /* Read one line from open ap_configfile_t, strip LF, increase line number */ |
| 1078 | /* If custom handler does not define a getstr() function, read char by char */ |
no outgoing calls
no test coverage detected