From a20526cc30d68ca5c4c7951238faafa8969a31c1 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Fri, 16 Apr 2010 14:29:17 +0100 Subject: Removing compiler warnings. Removed nearly 100 compiler warnings in the various routing daemons which now clean compile. Removed one warning in vty.c, which was obscured by the other warnings. SO... this commit corrects the previous one. --- ospf6d/ospf6_abr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ospf6d/ospf6_abr.c') diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index d38ef21a..e03ec842 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -162,7 +162,7 @@ ospf6_abr_originate_summary_to_area (struct ospf6_route *route, if (IS_OSPF6_DEBUG_ABR || IS_OSPF6_DEBUG_ORIGINATE (INTER_ROUTER)) { is_debug++; - inet_ntop (AF_INET, &(ADV_ROUTER_IN_PREFIX (&route->prefix)), + inet_ntop (AF_INET, &(ADV_ROUTER_IN_PREFIX (route->prefix)), buf, sizeof (buf)); zlog_debug ("Originating summary in area %s for ASBR %s", area->name, buf); @@ -355,7 +355,7 @@ ospf6_abr_originate_summary_to_area (struct ospf6_route *route, { if (is_debug) { - inet_ntop (AF_INET, &(ADV_ROUTER_IN_PREFIX (&route->prefix)), + inet_ntop (AF_INET, &(ADV_ROUTER_IN_PREFIX (route->prefix)), buf, sizeof(buf)); zlog_debug ("prefix %s was denied by export list", buf); } @@ -376,7 +376,7 @@ ospf6_abr_originate_summary_to_area (struct ospf6_route *route, { if (is_debug) { - inet_ntop (AF_INET, &(ADV_ROUTER_IN_PREFIX (&route->prefix)), + inet_ntop (AF_INET, &(ADV_ROUTER_IN_PREFIX (route->prefix)), buf, sizeof (buf)); zlog_debug ("prefix %s was denied by filter-list out", buf); } @@ -430,7 +430,7 @@ ospf6_abr_originate_summary_to_area (struct ospf6_route *route, router_lsa->options[1] = route->path.options[1]; router_lsa->options[2] = route->path.options[2]; OSPF6_ABR_SUMMARY_METRIC_SET (router_lsa, route->path.cost); - router_lsa->router_id = ADV_ROUTER_IN_PREFIX (&route->prefix); + router_lsa->router_id = ADV_ROUTER_IN_PREFIX (route->prefix); type = htons (OSPF6_LSTYPE_INTER_ROUTER); } else -- cgit v1.2.3