summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-30 02:12:02 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-30 02:12:02 +0800
commite4cb3e039b78e03dc7115faac065830dada67a17 (patch)
tree201230f1260a349f31bed07f7d518fd127c476b7 /tests
parent30cc096640a4d10ba9db64e101042a15822644ec (diff)
sccp: Adjust the code to only depend on libosmocore
* Introduce a method to set the value of the debug area to use and default it to -1. Turn the DSCCP enum into a local variable to make the log messages work. * Remove usage of openbsc and libbsc.a
Diffstat (limited to 'tests')
-rw-r--r--tests/sccp/Makefile.am2
-rw-r--r--tests/sccp/sccp_test.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/sccp/Makefile.am b/tests/sccp/Makefile.am
index b35693e..b7caf7d 100644
--- a/tests/sccp/Makefile.am
+++ b/tests/sccp/Makefile.am
@@ -4,5 +4,5 @@ AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS)
noinst_PROGRAMS = sccp_test
sccp_test_SOURCES = sccp_test.c
-sccp_test_LDADD = $(top_builddir)/src/libsccp.a $(top_builddir)/src/libbsc.a $(LIBOSMOCORE_LIBS)
+sccp_test_LDADD = $(top_builddir)/src/libsccp.a $(LIBOSMOCORE_LIBS)
diff --git a/tests/sccp/sccp_test.c b/tests/sccp/sccp_test.c
index 3b9ef4e..b6cade3 100644
--- a/tests/sccp/sccp_test.c
+++ b/tests/sccp/sccp_test.c
@@ -23,12 +23,13 @@
*/
#include <stdio.h>
+#include <string.h>
#include <arpa/inet.h>
-#include <openbsc/gsm_data.h>
-#include <openbsc/debug.h>
+#include <osmocore/logging.h>
#include <osmocore/msgb.h>
+#include <osmocore/utils.h>
#include <sccp/sccp.h>