From 86991248ac681124566bceeea97c5ea1123dd272 Mon Sep 17 00:00:00 2001 From: Polynomdivision Date: Tue, 9 Feb 2021 22:51:39 +0100 Subject: [PATCH] babeld: adopt to upstream header-style (#640) babeld: adopt to upstream header-style Instead of including the headerfiles that define the structs, we add forward definitions to our headerfile. Fixes warning: ubus.h:67:32: warning: 'struct xroute' declared inside parameter list will not be visible outside of this definition or declaration void ubus_notify_xroute(struct xroute *xroute, int kind); ^~~~~~ Signed-off-by: Nick Hainke --- babeld/Makefile | 2 +- babeld/src/ubus.c | 1 + babeld/src/ubus.h | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/babeld/Makefile b/babeld/Makefile index ef77f0a..0b61128 100644 --- a/babeld/Makefile +++ b/babeld/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=babeld PKG_VERSION:=1.9.2 -PKG_RELEASE:=4 +PKG_RELEASE:=$(AUTORELEASE) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/ diff --git a/babeld/src/ubus.c b/babeld/src/ubus.c index c97ee0a..e6d6d68 100644 --- a/babeld/src/ubus.c +++ b/babeld/src/ubus.c @@ -2,6 +2,7 @@ #include #include +#include #include #include #include diff --git a/babeld/src/ubus.h b/babeld/src/ubus.h index 66ef997..1dd5e6e 100644 --- a/babeld/src/ubus.h +++ b/babeld/src/ubus.h @@ -21,7 +21,12 @@ */ -#include +#include +#include + +struct babel_route; +struct neighbour; +struct xroute; // Whether to enable ubus bindings (boolean option). extern int ubus_bindings;