* at reboot time (maybe) so we never need to free it */
static struct sctstr **neighsects;
-static s_char *
+static struct bestp *
bp_init(void)
{
struct bestp *bp;
neighsects = calloc(((WORLD_X * WORLD_Y) / 2) * 6,
sizeof(struct sctstr *));
- return (s_char *)bp;
+ return bp;
}
/*
struct as_path *ap;
if (mybestpath == 0)
- mybestpath = (struct bestp *)bp_init();
+ mybestpath = bp_init();
adp = mybestpath->adp;
ap = as_find_cachepath(from->sct_x, from->sct_y, to->sct_x, to->sct_y);
if (ap == NULL) {