]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: fix clang warning
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 8 Mar 2017 15:37:42 +0000 (16:37 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 4 May 2017 14:26:12 +0000 (10:26 -0400)
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>
pimd/pim_sock.c

index 54816d126be7f1150648993c038c9d8fb88fcf49..e1949e3602f3a08532f0cdeb0c35f234215da97d 100644 (file)
@@ -136,7 +136,7 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, int ifindex, u_char lo
   
   /* 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;