Index: board.c =================================================================== --- board.c (revision 37890) +++ board.c (revision 37891) @@ -210,9 +210,9 @@ return rnd_RTREE_DIR_FOUND_CONT; } -static rnd_r_dir_t slot_counting_callback(const rnd_box_t *b, void *cl) +static rnd_rtree_dir_t slot_counting_callback(void *cl, void *obj, const rnd_rtree_box_t *box) { - pcb_pstk_t *ps = (pcb_pstk_t *)b; + pcb_pstk_t *ps = (pcb_pstk_t *)obj; pcb_pstk_proto_t *proto = pcb_pstk_get_proto(ps); hole_count_t *hcs = (hole_count_t *)cl; @@ -222,7 +222,7 @@ else hcs->nunplated++; } - return RND_R_DIR_FOUND_CONTINUE; + return rnd_RTREE_DIR_FOUND_CONT; } void pcb_board_count_holes(pcb_board_t *pcb, int *plated, int *unplated, const rnd_box_t *within_area) @@ -241,7 +241,7 @@ { hole_count_t hcs = { 0, 0 }; - rnd_r_search(pcb->Data->padstack_tree, within_area, NULL, slot_counting_callback, &hcs, NULL); + rnd_rtree_search_any(pcb->Data->padstack_tree, (rnd_rtree_box_t *)within_area, NULL, slot_counting_callback, &hcs, NULL); if (plated != NULL) *plated = hcs.nplated;