diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-03-08 16:37:42 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-03-08 16:38:26 +0100 |
commit | 6a5e07e0c60b93fdc2ccb076a3ee3d20ef05453e (patch) | |
tree | f4006b734043550fd2a183840ec50302018bf257 /pimd/pim_sock.c | |
parent | watchfrr: make min/max restart interval longopts (diff) | |
download | frr-6a5e07e0c60b93fdc2ccb076a3ee3d20ef05453e.tar.xz frr-6a5e07e0c60b93fdc2ccb076a3ee3d20ef05453e.zip |
pimd: fix clang warning
pimd/pim_sock.c:178:13: error: implicit conversion from
'int' to 'char' changes value from 148 to -108
[-Werror,-Wconstant-conversion]
ra[0] = 148;
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_sock.c')
-rw-r--r-- | pimd/pim_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_sock.c b/pimd/pim_sock.c index 7f62a1e9d..07b137bb5 100644 --- a/pimd/pim_sock.c +++ b/pimd/pim_sock.c @@ -174,7 +174,7 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp, /* Set router alert (RFC 2113) for all IGMP messages (RFC 3376 4. Message Formats)*/ if (protocol == IPPROTO_IGMP) { - char ra[4]; + uint8_t ra[4]; ra[0] = 148; ra[1] = 4; ra[2] = 0; |