| 1237 | } |
| 1238 | |
| 1239 | ACL_SLICE_POOL *acl_slice_pool_create(int base, int nslice, |
| 1240 | unsigned int slice_flag) |
| 1241 | { |
| 1242 | ACL_SLICE_POOL *asp = (ACL_SLICE_POOL*) |
| 1243 | __slice_calloc_fn(__FILE__, __LINE__, 1, sizeof(*asp)); |
| 1244 | |
| 1245 | asp->base = base; |
| 1246 | asp->nslice = nslice; |
| 1247 | asp->slice_flag = slice_flag; |
| 1248 | asp->slices = (ACL_SLICE**) __slice_calloc_fn(__FILE__, __LINE__, |
| 1249 | nslice, sizeof(ACL_SLICE*)); |
| 1250 | acl_slice_pool_init(asp); |
| 1251 | return asp; |
| 1252 | } |
| 1253 | |
| 1254 | void acl_slice_pool_destroy(ACL_SLICE_POOL *asp) |
| 1255 | { |
no test coverage detected
searching dependent graphs…