diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-26 22:10:33 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-26 22:10:33 -0400 |
| commit | 838cf8aba548d8fae9ddfb4313dd361f1047865a (patch) | |
| tree | a0a6410a6073014c9b45a95ff8b4563e767eb639 /eigrpd/eigrp_interface.c | |
| parent | 171616cceff75cdab7c0bb783c76f6138cd5fc5d (diff) | |
eigrpd: Switch u_int64_t -> uint64_t
Apparently u_int64_t is not available (or we don't pull
the right headers in for solaris based systems ).
Signed-off-by: Donald Sharp <sharpd@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 645b70d23b..7fa135d968 100644 --- a/eigrpd/eigrp_interface.c +++ b/eigrpd/eigrp_interface.c @@ -589,7 +589,7 @@ eigrp_if_lookup_recv_if (struct eigrp *eigrp, struct in_addr src, u_int32_t eigrp_bandwidth_to_scaled (u_int32_t bandwidth) { - u_int64_t temp_bandwidth = (256ull * 10000000) / bandwidth; + uint64_t temp_bandwidth = (256ull * 10000000) / bandwidth; temp_bandwidth = temp_bandwidth < EIGRP_MAX_METRIC ? temp_bandwidth : EIGRP_MAX_METRIC; @@ -600,7 +600,7 @@ eigrp_bandwidth_to_scaled (u_int32_t bandwidth) u_int32_t eigrp_scaled_to_bandwidth (u_int32_t scaled) { - u_int64_t temp_scaled = scaled * (256ull * 10000000); + uint64_t temp_scaled = scaled * (256ull * 10000000); temp_scaled = temp_scaled < EIGRP_MAX_METRIC ? temp_scaled : EIGRP_MAX_METRIC; |
