warn if anything non blank appears, but ignore comments... */
| 107 | warn if anything non blank appears, but ignore comments... |
| 108 | */ |
| 109 | static void warn_if_non_blank(const char * what, |
| 110 | char * ptr, |
| 111 | ap_configfile_t * cfg) |
| 112 | { |
| 113 | char * p; |
| 114 | for (p=ptr; *p; p++) { |
| 115 | if (*p == '#') |
| 116 | break; |
| 117 | if (*p != ' ' && *p != '\t') { |
| 118 | ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, APLOGNO(02989) |
| 119 | "%s on line %d of %s: %s", |
| 120 | what, cfg->line_number, cfg->name, ptr); |
| 121 | break; |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /* |
| 127 | get read lines as an array till end_token. |
no test coverage detected