summaryrefslogtreecommitdiff
path: root/isisd/isis_spf.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-26 16:24:14 +0000
committerhasso <hasso>2004-09-26 16:24:14 +0000
commitf7c43dcbbc44e2098728f9849d152d9b6df97a5d (patch)
treeb0a244f23dc7f1d9414d7a92316f7f83e3103c5b /isisd/isis_spf.c
parent1af8193311192ec1bd2a4d2769e0e9b90bc1609f (diff)
Compiler warnings fixes.
Diffstat (limited to 'isisd/isis_spf.c')
-rw-r--r--isisd/isis_spf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index b2845ae1..1c32f8fc 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -192,13 +192,13 @@ vid2string (struct isis_vertex *vertex, u_char * buff)
case VTYPE_IP6REACH_INTERNAL:
case VTYPE_IP6REACH_EXTERNAL:
#endif /* HAVE_IPV6 */
- prefix2str ((struct prefix *) &vertex->N.prefix, buff, BUFSIZ);
+ prefix2str ((struct prefix *) &vertex->N.prefix, (char *) buff, BUFSIZ);
break;
default:
return "UNKNOWN";
}
- return buff;
+ return (char *) buff;
}
struct isis_spftree *
@@ -232,10 +232,10 @@ isis_vertex_del (struct isis_vertex *vertex)
void
isis_spftree_del (struct isis_spftree *spftree)
{
- spftree->tents->del = (void *) isis_vertex_del;
+ spftree->tents->del = (void (*)(void *)) isis_vertex_del;
list_delete (spftree->tents);
- spftree->paths->del = (void *) isis_vertex_del;
+ spftree->paths->del = (void (*)(void *)) isis_vertex_del;
list_delete (spftree->paths);
XFREE (MTYPE_ISIS_SPFTREE, spftree);
@@ -935,7 +935,7 @@ add_to_paths (struct isis_spftree *spftree, struct isis_vertex *vertex,
void
init_spt (struct isis_spftree *spftree)
{
- spftree->tents->del = spftree->paths->del = (void *) isis_vertex_del;
+ spftree->tents->del = spftree->paths->del = (void (*)(void *)) isis_vertex_del;
list_delete_all_node (spftree->tents);
list_delete_all_node (spftree->paths);
spftree->tents->del = spftree->paths->del = NULL;