summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_network.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 15:13:34 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 15:13:34 -0400
commitd7c0a89a3a5697783a6dd89333ab660074790890 (patch)
treeeefa73e502f919b524b8a345437260d4acc23083 /ospf6d/ospf6_network.c
parent28ac5a038101c66e4275a9b1ef6fb37b4f74fb6a (diff)
*: 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 'ospf6d/ospf6_network.c')
-rw-r--r--ospf6d/ospf6_network.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_network.c b/ospf6d/ospf6_network.c
index 9f81bb89fb..4790d8f01e 100644
--- a/ospf6d/ospf6_network.c
+++ b/ospf6d/ospf6_network.c
@@ -38,9 +38,9 @@ struct in6_addr alldrouters6;
/* setsockopt MulticastLoop to off */
static void ospf6_reset_mcastloop(void)
{
- u_int off = 0;
+ unsigned int off = 0;
if (setsockopt(ospf6_sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &off,
- sizeof(u_int))
+ sizeof(unsigned int))
< 0)
zlog_warn("Network: reset IPV6_MULTICAST_LOOP failed: %s",
safe_strerror(errno));
@@ -156,7 +156,7 @@ int ospf6_sendmsg(struct in6_addr *src, struct in6_addr *dst,
struct cmsghdr *scmsgp;
union {
struct cmsghdr hdr;
- u_char buf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
+ uint8_t buf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
} cmsgbuf;
struct in6_pktinfo *pktinfo;
struct sockaddr_in6 dst_sin6;
@@ -212,7 +212,7 @@ int ospf6_recvmsg(struct in6_addr *src, struct in6_addr *dst,
int retval;
struct msghdr rmsghdr;
struct cmsghdr *rcmsgp;
- u_char cmsgbuf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
+ uint8_t cmsgbuf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
struct in6_pktinfo *pktinfo;
struct sockaddr_in6 src_sin6;