Moved out most ob mavl_ into libmavl.

Current libmavl is here:
https://svn.planix.org/rsrch/trunk/libmavl
This commit is contained in:
2022-07-18 01:15:17 +02:00
parent 1734000f41
commit 8d09b1d596
46 changed files with 94 additions and 1370 deletions

View File

@ -155,7 +155,7 @@ struct conn * connlist_add ( struct connlist * cl, struct conn * conn )
return NULL;
conn->connlist = cl;
return mavl_add_ptr ( cl->by_addr, conn );
return mavl_insert_ptr ( cl->by_addr, conn );
}
struct conn * connlist_get_by_session_id ( struct connlist *cl, struct conn * conn )
@ -165,7 +165,7 @@ struct conn * connlist_get_by_session_id ( struct connlist *cl, struct conn * co
struct conn * connlist_add_by_session_id ( struct connlist * cl, struct conn * conn )
{
return mavl_add_ptr ( cl->by_session_id, conn );
return mavl_insert_ptr ( cl->by_session_id, conn );
}
void connlist_remove ( struct connlist *cl, struct conn * conn )