diff --git a/babeld/Makefile b/babeld/Makefile index 48604e974..71ffbd11c 100644 --- a/babeld/Makefile +++ b/babeld/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=babeld PKG_VERSION:=1.13.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/ @@ -45,8 +45,7 @@ endef MAKE_FLAGS+= \ CFLAGS="$(TARGET_CFLAGS)" \ - LDLIBS="" \ - LDLIBS+="-lubus -lubox" + LDLIBS="-lubus -lubox" define Package/babeld/install $(INSTALL_DIR) $(1)/usr/sbin diff --git a/babeld/src/ubus.c b/babeld/src/ubus.c index a4bdf7a14..01a152c8f 100644 --- a/babeld/src/ubus.c +++ b/babeld/src/ubus.c @@ -83,7 +83,7 @@ static int babeld_ubus_add_filter(struct ubus_context *ctx_local, struct blob_buf b = {0}; struct filter *filter = NULL; char *ifname; - int metric, type; + int metric = 0, type; blobmsg_parse(filter_policy, __FILTER_MAX, tb, blob_data(msg), blob_len(msg));