summaryrefslogtreecommitdiffstats
path: root/pimd/test_igmpv3_join.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@hpe.com>2016-01-18 11:12:10 +0100
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-08-18 13:35:38 +0200
commitb892f1ddfe42a620d84b6c245d1997e4b560eea8 (patch)
treeacf13ca7ac43984b9215b0006d4d16fac2c281c3 /pimd/test_igmpv3_join.c
parentMerge remote-tracking branch 'origin/cmaster' into cmaster-next (diff)
downloadfrr-b892f1ddfe42a620d84b6c245d1997e4b560eea8.tar.xz
frr-b892f1ddfe42a620d84b6c245d1997e4b560eea8.zip
*: use an ifindex_t type, defined in lib/if.h, for ifindex values
(cherry picked from commit 9099f9b2a66e86f8a90d7fe18f61bd2bb1bc6744)
Diffstat (limited to 'pimd/test_igmpv3_join.c')
-rw-r--r--pimd/test_igmpv3_join.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/test_igmpv3_join.c b/pimd/test_igmpv3_join.c
index 7fcf38bce..5c4574024 100644
--- a/pimd/test_igmpv3_join.c
+++ b/pimd/test_igmpv3_join.c
@@ -32,6 +32,7 @@
#include <net/if.h>
#include <arpa/inet.h>
+#include "if.h"
#include "pim_igmp_join.h"
const char *prog_name = 0;
@@ -39,7 +40,7 @@ const char *prog_name = 0;
static int iface_solve_index(const char *ifname)
{
struct if_nameindex *ini;
- int ifindex = -1;
+ ifindex_t ifindex = -1;
int i;
if (!ifname)
@@ -79,7 +80,7 @@ int main(int argc, const char *argv[])
const char *ifname;
const char *group;
const char *source;
- int ifindex;
+ ifindex_t ifindex;
int result;
int fd;