diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 08:51:53 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-30 03:27:26 +0200 |
commit | 6c4f4e6e6a00d412f2c683f0a4232389ee7235f8 (patch) | |
tree | 7dbee5d120c31c701b63ac92585aff3087caf8da /ospfd/ospf_spf.c | |
parent | *: use long long to print time_t (diff) | |
download | frr-6c4f4e6e6a00d412f2c683f0a4232389ee7235f8.tar.xz frr-6c4f4e6e6a00d412f2c683f0a4232389ee7235f8.zip |
*: use void * for printing pointers
On higher warning levels, compilers expect %p printf arguments to be
void *. Since format string / argument warnings can be useful
otherwise, let's get rid of this noise by sprinkling casts to void *
over printf calls.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_spf.c')
-rw-r--r-- | ospfd/ospf_spf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index bcd5e6193..9f6c6f471 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -1008,7 +1008,7 @@ ospf_spf_dump (struct vertex *v, int i) for (ALL_LIST_ELEMENTS_RO (v->parents, nnode, parent)) { zlog_debug (" nexthop %p %s %s", - parent->nexthop, + (void *)parent->nexthop, inet_ntoa (parent->nexthop->router), parent->nexthop->oi ? IF_NAME(parent->nexthop->oi) : "NULL"); @@ -1438,7 +1438,7 @@ ospf_spf_calculate_schedule (struct ospf *ospf, ospf_spf_reason_t reason) { if (IS_DEBUG_OSPF_EVENT) zlog_debug ("SPF: calculation timer is already scheduled: %p", - ospf->t_spf_calc); + (void *)ospf->t_spf_calc); return; } |