diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-22 15:52:30 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-26 15:22:23 +0000 | 
| commit | c5f119c06dbf56887709912cf247cc7679ffc411 (patch) | |
| tree | acf0cf6d58a18de2a2f1c34fe7aabdd3e8b320c4 /eigrpd/eigrp_interface.c | |
| parent | fb13a6d478f5ac3a95309a009909c7769ec6c1cc (diff) | |
*: do not take address of packed member
May result in alignment errors on certain platforms
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_interface.c')
| -rw-r--r-- | eigrpd/eigrp_interface.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/eigrpd/eigrp_interface.c b/eigrpd/eigrp_interface.c index 7e38a8da59..9b2c8f363f 100644 --- a/eigrpd/eigrp_interface.c +++ b/eigrpd/eigrp_interface.c @@ -310,7 +310,7 @@ eigrp_if_up (struct eigrp_interface *ei)        pe->nt = EIGRP_TOPOLOGY_TYPE_CONNECTED;        pe->state = EIGRP_FSM_STATE_PASSIVE; -      pe->fdistance = eigrp_calculate_metrics (eigrp, &metric); +      pe->fdistance = eigrp_calculate_metrics (eigrp, metric);        pe->req_action |= EIGRP_FSM_NEED_UPDATE;        eigrp_prefix_entry_add (eigrp->topology_table, pe);        listnode_add(eigrp->topology_changes_internalIPV4, pe); @@ -319,7 +319,7 @@ eigrp_if_up (struct eigrp_interface *ei)    ne->ei = ei;    ne->reported_metric = metric;    ne->total_metric = metric; -  ne->distance = eigrp_calculate_metrics (eigrp, &metric); +  ne->distance = eigrp_calculate_metrics (eigrp, metric);    ne->reported_distance = 0;    ne->prefix = pe;    ne->adv_router = eigrp->neighbor_self;  | 
