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_interface.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_interface.c')
-rw-r--r-- | zebra/irdp_interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c index 2c10ce86a..ca7840479 100644 --- a/zebra/irdp_interface.c +++ b/zebra/irdp_interface.c @@ -97,7 +97,7 @@ static int irdp_if_delete(struct interface *ifp) return 0; } -static const char *inet_2a(u_int32_t a, char *b) +static const char *inet_2a(uint32_t a, char *b) { sprintf(b, "%u.%u.%u.%u", (a)&0xFF, (a >> 8) & 0xFF, (a >> 16) & 0xFF, (a >> 24) & 0xFF); @@ -118,7 +118,7 @@ static struct prefix *irdp_get_prefix(struct interface *ifp) } /* Join to the add/leave multicast group. */ -static int if_group(struct interface *ifp, int sock, u_int32_t group, +static int if_group(struct interface *ifp, int sock, uint32_t group, int add_leave) { struct ip_mreq m; @@ -216,7 +216,7 @@ static void irdp_if_start(struct interface *ifp, int multicast, struct irdp_interface *irdp = zi->irdp; struct listnode *node; struct connected *ifc; - u_int32_t timer, seed; + uint32_t timer, seed; assert(irdp); |