RTree_t *rtp;
if ((rtp = calloc(1, sizeof(RTree_t))))
- rtp->root = RTreeNewIndex(rtp);
+ rtp->root = RTreeNewIndex();
return rtp;
}
/* Make a new index, empty. Consists of a single node. */
-Node_t *RTreeNewIndex(RTree_t * rtp)
-{
+Node_t *RTreeNewIndex(void ) {
Node_t *x = RTreeNewNode();
x->level = 0; /* leaf */
return x;
RTree_t *RTreeOpen(void);
int RTreeClose(RTree_t * rtp);
-Node_t *RTreeNewIndex(RTree_t * rtp);
+Node_t *RTreeNewIndex(void);
LeafList_t *RTreeSearch(RTree_t *, Node_t *, Rect_t *);
int RTreeInsert(RTree_t *, Rect_t *, void *, Node_t **, int);