| 412 | } |
| 413 | |
| 414 | char *bencode_collapse_dup(bencode_item_t *root, int *len) { |
| 415 | char *ret; |
| 416 | int l; |
| 417 | |
| 418 | if (!root) |
| 419 | return NULL; |
| 420 | assert(root->str_len > 0); |
| 421 | |
| 422 | ret = BENCODE_MALLOC(root->str_len + 1); |
| 423 | if (!ret) |
| 424 | return NULL; |
| 425 | |
| 426 | l = __bencode_str_dump(ret, root); |
| 427 | if (len) |
| 428 | *len = l; |
| 429 | return ret; |
| 430 | } |
| 431 | |
| 432 | static unsigned int __bencode_hash_str_len(const unsigned char *s, int len) { |
| 433 | unsigned long *ul; |
nothing calls this directly
no test coverage detected