aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-04-30 15:59:01 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-04 09:58:34 +0200
commitc0c580c414e4fe0bd82ebc78ff12bb1014cd5a9c (patch)
treeea67620edf877cb24fd3b9ebc7a5252cf50c79cd /src
parent56e8d710907b9320d41a6285f08bba39aae2ee3b (diff)
vty: Fix warnings about undeclared functions
This commit adds missing includes to pcu_vty.c and fixes the llist_head type (missing struct keyword) used by tbf_print_vty_info. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
-rw-r--r--src/pcu_vty.c2
-rw-r--r--src/tbf.cpp2
-rw-r--r--src/tbf.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index a4f01db2..af1e5615 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -4,11 +4,13 @@
#include <stdint.h>
#include <stdlib.h>
#include <osmocom/vty/logging.h>
+#include <osmocom/vty/misc.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/rate_ctr.h>
#include "pcu_vty.h"
#include "gprs_rlcmac.h"
#include "bts.h"
+#include "tbf.h"
enum node_type pcu_vty_go_parent(struct vty *vty)
{
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 9869ff4b..b1377f0e 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -869,7 +869,7 @@ uint8_t gprs_rlcmac_tbf::tsc() const
return trx->pdch[first_ts].tsc;
}
-void tbf_print_vty_info(struct vty *vty, llist_head *ltbf)
+void tbf_print_vty_info(struct vty *vty, struct llist_head *ltbf)
{
gprs_rlcmac_tbf *tbf = llist_pods_entry(ltbf, gprs_rlcmac_tbf);
diff --git a/src/tbf.h b/src/tbf.h
index e835ab6f..bfe2875a 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -406,8 +406,7 @@ extern "C" {
#include <osmocom/vty/command.h>
#include <osmocom/vty/vty.h>
-
- void tbf_print_vty_info(struct vty *vty, llist_head *tbf);
+ void tbf_print_vty_info(struct vty *vty, struct llist_head *tbf);
#ifdef __cplusplus
}
#endif