| 219 | } |
| 220 | |
| 221 | const char *http_tmpl_title(int status) |
| 222 | { |
| 223 | int i, pos; |
| 224 | |
| 225 | i = status / 100; |
| 226 | if (i < 1 || i > 5) |
| 227 | return (__unknown_status); |
| 228 | |
| 229 | i--; |
| 230 | pos = status - __tmpl_maps[i].level; |
| 231 | |
| 232 | if (pos >= __tmpl_maps[i].size) |
| 233 | return (__unknown_status); |
| 234 | |
| 235 | if (__tmpl_maps[i].tmpl[pos].buf == NULL) |
| 236 | return (__unknown_status); |
| 237 | |
| 238 | return (__tmpl_maps[i].tmpl[pos].title); |
| 239 | } |
| 240 | |
| 241 | int http_tmpl_size(int status) |
| 242 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…