| 1205 | #endif |
| 1206 | |
| 1207 | int tpl_write(const tpl_t* tpl, int fd) |
| 1208 | { |
| 1209 | int len = tpl_length(tpl); |
| 1210 | char *content = (char *)acl_mymalloc(len + 1); |
| 1211 | |
| 1212 | tpl_get_content(tpl, content); |
| 1213 | len = write(fd, content, len); |
| 1214 | acl_myfree(content); |
| 1215 | |
| 1216 | if (len < 0) |
| 1217 | return TPL_WRITE_ERROR; |
| 1218 | |
| 1219 | return TPL_OK; |
| 1220 | } |
| 1221 | |
| 1222 | |
| 1223 | int tpl_http_write(const tpl_t* tpl, int fd) |
nothing calls this directly
no test coverage detected
searching dependent graphs…