Compiler warnings fixes.
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index b2845ae..1c32f8f 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -192,13 +192,13 @@
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 @@
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 @@
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;