]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix some compiler issues 1796/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Feb 2018 07:07:47 +0000 (02:07 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Feb 2018 07:07:47 +0000 (02:07 -0500)
Fix some compiler issues that were not picked up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/mtracebis.c
pimd/pim_igmp_mtrace.c

index 2032cdcfbe91584e292549d86b4ff84d423e908c..1e7aee858a9bce6e72c55a0fe6c4a683d1ff5994 100644 (file)
@@ -35,6 +35,8 @@
 #include <string.h>
 #include <time.h>
 #include <net/if.h>
+#include <unistd.h>
+#include <getopt.h>
 
 #define MTRACEBIS_VERSION "0.1"
 #define MTRACE_TIMEOUT (5)
index 629e10cb0c6f9ea136f325df6f7487898c9f567a..feb326c45c49e32c4b5727ec12824147393ee8be 100644 (file)
@@ -492,7 +492,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,
                if (PIM_DEBUG_MTRACE)
                        zlog_warn(
                                "Recv mtrace packet from %s on %s: too short,"
-                               " len=%d, min=%lu",
+                               " len=%d, min=%zu",
                                from_str, ifp->name, igmp_msg_len,
                                sizeof(struct igmp_mtrace));
                return -1;