[1/2] batman-adv: remove forward declaration by including proper header
Commit Message
If main.h is included, the forward declaration for struct batadv_priv
is not required.
Cc: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
---
Sven, is there any special region for not having the include in this file ?
It seems to be compiling just fine.
Cheers,
net/batman-adv/bat_algo.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -18,7 +18,7 @@
#ifndef _NET_BATMAN_ADV_BAT_ALGO_H_
#define _NET_BATMAN_ADV_BAT_ALGO_H_
-struct batadv_priv;
+#include "main.h"
int batadv_iv_init(void);