* view.c (enqueue_change): Made the algorithm independent of the

memory layout (especially the order) of the fields in struct
	hexedit_change_node.
This commit is contained in:
Roland Illig 2005-04-16 21:47:26 +00:00
parent 0453262b4b
commit d2f7ec86c4
2 changed files with 3 additions and 6 deletions

View File

@ -23,7 +23,7 @@
are otherwise unused.
* view.c (enqueue_change): Made the algorithm independent of the
memory layout (especially the order) of the fields in struct
hexedit_change_node.
hexedit_change_node. Rewrote it.
2005-04-14 Roland Illig <roland.illig@gmx.de>

View File

@ -370,11 +370,8 @@ enqueue_change (struct hexedit_change_node **head,
struct hexedit_change_node *curr = *head;
while (curr) {
if (node->offset < curr->offset) {
*head = node;
node->next = curr;
return;
}
if (node->offset < curr->offset)
break;
head = &(curr->next);
curr = curr->next;
}