| 624 | } |
| 625 | |
| 626 | static void remove_first(h2_push_diary *diary) |
| 627 | { |
| 628 | h2_push_diary_entry *entries = (h2_push_diary_entry*)diary->entries->elts; |
| 629 | int lastidx; |
| 630 | |
| 631 | /* move remaining entries to index 0 */ |
| 632 | lastidx = diary->entries->nelts - 1; |
| 633 | if (lastidx > 0) { |
| 634 | --diary->entries->nelts; |
| 635 | memmove(entries, entries+1, sizeof(h2_push_diary_entry) * diary->entries->nelts); |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | static void h2_push_diary_append(h2_push_diary *diary, h2_push_diary_entry *e) |
| 640 | { |
no outgoing calls
no test coverage detected