Skip to content

Commit

Permalink
libs, ospfd: remove inet_ntoa
Browse files Browse the repository at this point in the history
inet_ntoa not permitted - replace instances.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
  • Loading branch information
Mark Stapp committed Jan 27, 2021
1 parent 72bd116 commit acc847c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/link_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,10 +1273,8 @@ void ls_dump_ted(struct ls_ted *ted)
frr_each(subnets, &ted->subnets, subnet) {
ls_subnet2msg(&msg, subnet);
zlog_debug(
"\tTed subnet key:%s vertex:%pI4 pfx:%pFX",
subnet->key.family == AF_INET
? inet_ntoa(subnet->key.u.prefix4)
: inet6_ntoa(subnet->key.u.prefix6),
"\tTed subnet key:%pFX vertex:%pI4 pfx:%pFX",
&subnet->key,
&subnet->vertex->node->adv.id.ip.addr,
&subnet->ls_pref->pref);
}
Expand Down
7 changes: 4 additions & 3 deletions ospfd/ospf_lsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -2854,9 +2854,10 @@ static int ospf_maxage_lsa_remover(struct thread *thread)
*/
if (old != lsa) {
flog_err(EC_OSPF_LSA_MISSING,
"%s: LSA[Type%d:%s]: LSA not in LSDB",
__func__, lsa->data->type,
inet_ntoa(lsa->data->id));
"%s: LSA[Type%d:%pI4]: LSA not in LSDB",
__func__, lsa->data->type,
&lsa->data->id);

continue;
}
ospf_discard_from_db(ospf, lsa->lsdb, lsa);
Expand Down

0 comments on commit acc847c

Please sign in to comment.