(bp_init): Use semantically correct return type instead of s_char *.
Caller changed.
This commit is contained in:
parent
bd2673a6e4
commit
aa5a8ec0dc
1 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ static int bp_coord_hash(struct as_coord c);
|
||||||
* at reboot time (maybe) so we never need to free it */
|
* at reboot time (maybe) so we never need to free it */
|
||||||
static struct sctstr **neighsects;
|
static struct sctstr **neighsects;
|
||||||
|
|
||||||
static s_char *
|
static struct bestp *
|
||||||
bp_init(void)
|
bp_init(void)
|
||||||
{
|
{
|
||||||
struct bestp *bp;
|
struct bestp *bp;
|
||||||
|
@ -92,7 +92,7 @@ bp_init(void)
|
||||||
neighsects = calloc(((WORLD_X * WORLD_Y) / 2) * 6,
|
neighsects = calloc(((WORLD_X * WORLD_Y) / 2) * 6,
|
||||||
sizeof(struct sctstr *));
|
sizeof(struct sctstr *));
|
||||||
|
|
||||||
return (s_char *)bp;
|
return bp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -108,7 +108,7 @@ best_path(struct sctstr *from, struct sctstr *to, s_char *path,
|
||||||
struct as_path *ap;
|
struct as_path *ap;
|
||||||
|
|
||||||
if (mybestpath == 0)
|
if (mybestpath == 0)
|
||||||
mybestpath = (struct bestp *)bp_init();
|
mybestpath = bp_init();
|
||||||
adp = mybestpath->adp;
|
adp = mybestpath->adp;
|
||||||
ap = as_find_cachepath(from->sct_x, from->sct_y, to->sct_x, to->sct_y);
|
ap = as_find_cachepath(from->sct_x, from->sct_y, to->sct_x, to->sct_y);
|
||||||
if (ap == NULL) {
|
if (ap == NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue