diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-27 21:13:34 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-27 21:13:34 +0200 |
commit | d7c0a89a3a5697783a6dd89333ab660074790890 (patch) | |
tree | eefa73e502f919b524b8a345437260d4acc23083 /zebra/irdp_main.c | |
parent | tools, doc: update checkpatch for u_int_* (diff) | |
download | frr-d7c0a89a3a5697783a6dd89333ab660074790890.tar.xz frr-d7c0a89a3a5697783a6dd89333ab660074790890.zip |
*: use C99 standard fixed-width integer types
The following types are nonstandard:
- u_char
- u_short
- u_int
- u_long
- u_int8_t
- u_int16_t
- u_int32_t
Replace them with the C99 standard types:
- uint8_t
- unsigned short
- unsigned int
- unsigned long
- uint8_t
- uint16_t
- uint32_t
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/irdp_main.c')
-rw-r--r-- | zebra/irdp_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c index 39e04480c..c2411d083 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -146,7 +146,7 @@ static int make_advertisement_packet(struct interface *ifp, struct prefix *p, struct irdp_interface *irdp = zi->irdp; int size; int pref; - u_int16_t checksum; + uint16_t checksum; pref = get_pref(irdp, p); @@ -177,8 +177,8 @@ static void irdp_send(struct interface *ifp, struct prefix *p, struct stream *s) struct zebra_if *zi = ifp->info; struct irdp_interface *irdp = zi->irdp; char buf[PREFIX_STRLEN]; - u_int32_t dst; - u_int32_t ttl = 1; + uint32_t dst; + uint32_t ttl = 1; if (!irdp) return; @@ -210,7 +210,7 @@ static void irdp_advertisement(struct interface *ifp, struct prefix *p) int irdp_send_thread(struct thread *t_advert) { - u_int32_t timer, tmp; + uint32_t timer, tmp; struct interface *ifp = THREAD_ARG(t_advert); struct zebra_if *zi = ifp->info; struct irdp_interface *irdp = zi->irdp; @@ -288,7 +288,7 @@ void process_solicit(struct interface *ifp) { struct zebra_if *zi = ifp->info; struct irdp_interface *irdp = zi->irdp; - u_int32_t timer; + uint32_t timer; if (!irdp) return; |