Use priority queue to reassemble TFTP packets
This commit is contained in:
parent
fecdbd6b17
commit
92bb3cfc17
3 changed files with 135 additions and 56 deletions
|
@ -136,7 +136,7 @@ grub_priority_queue_new (grub_size_t elsize,
|
|||
|
||||
/* Heap property: pq->cmp (element (pq, p), element (pq, parent (p))) <= 0. */
|
||||
grub_err_t
|
||||
grub_priority_queue_push (grub_priority_queue_t pq, void *el)
|
||||
grub_priority_queue_push (grub_priority_queue_t pq, const void *el)
|
||||
{
|
||||
grub_size_t p;
|
||||
if (pq->used == pq->allocated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue