list: list_swap to exchange elements
This allows deleting and re-inserting an element in place of the deleted element without branching. Signed-off-by:Eric Wong <normalperson@yhbt.net> Reviewed-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Rusty Russell <rusty@rustcorp.com.au>
Showing
Please register or sign in to comment