summaryrefslogtreecommitdiffstats
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-10-11 14:21:41 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-10-11 14:21:41 +0200
commit353190c1c801e725472c79e12f924f0c1639661a (patch)
treec883d2d082044a1140a9ffdb2e5b2f3772251759 /zebra/rt_netlink.c
parentrfapi: cleanup some warnings (diff)
downloadfrr-353190c1c801e725472c79e12f924f0c1639661a.tar.xz
frr-353190c1c801e725472c79e12f924f0c1639661a.zip
zebra: Fix signed / unsigned comparisons
clang is complaining about signed/unsigned comparisons for rta_addattr_l. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 95c889297..825ad0010 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -1719,7 +1719,8 @@ addattr_l (struct nlmsghdr *n, unsigned int maxlen, int type, void *data, int al
}
int
-rta_addattr_l (struct rtattr *rta, int maxlen, int type, void *data, int alen)
+rta_addattr_l (struct rtattr *rta, unsigned int maxlen, int type,
+ void *data, int alen)
{
int len;
struct rtattr *subrta;