opm: use rb_dlinkDelete instead of rb_dlinkFindDelete.

This commit is contained in:
Elizabeth Myers 2016-04-30 01:58:42 -05:00
parent 49fd293f20
commit c767c58b2a
No known key found for this signature in database
GPG key ID: 1A10EF78D83E317B

View file

@ -304,7 +304,7 @@ opm_connected(rb_fde_t *F, int error, void *data)
end: end:
rb_close(scan->F); rb_close(scan->F);
rb_dlinkFindDelete(scan, &lookup->scans); rb_dlinkDelete(&scan->node, &lookup->scans);
rb_free(scan); rb_free(scan);
} }
@ -855,7 +855,7 @@ delete_opm_scanner(const char *key __unused, int parc __unused, const char **par
if(scan->proxy->port == proxy->port && scan->proxy->proto == proxy->proto) if(scan->proxy->port == proxy->port && scan->proxy->proto == proxy->proto)
{ {
/* Match */ /* Match */
rb_dlinkFindDelete(scan, &lookup->scans); rb_dlinkDelete(&scan->node, &lookup->scans);
rb_free(scan); rb_free(scan);
if(rb_dlink_list_length(&lookup->scans) == 0) if(rb_dlink_list_length(&lookup->scans) == 0)
@ -866,7 +866,7 @@ delete_opm_scanner(const char *key __unused, int parc __unused, const char **par
} }
} }
rb_dlinkFindDelete(proxy, &proxy_scanners); rb_dlinkDelete(&proxy->node, &proxy_scanners);
rb_free(proxy); rb_free(proxy);
if(rb_dlink_list_length(&proxy_scanners) == 0) if(rb_dlink_list_length(&proxy_scanners) == 0)