MCPcopy Create free account
hub / github.com/apache/httpd / remove_first

Function remove_first

modules/http2/h2_push.c:626–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626static 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
639static void h2_push_diary_append(h2_push_diary *diary, h2_push_diary_entry *e)
640{

Callers 1

h2_push_diary_appendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected