aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-11-21 13:06:36 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-11-21 14:05:26 +0100
commit4f29fe7d1f85bf0d47024bf2c92f09165b11fe6e (patch)
tree7cdc53311c6c96b1f21f52a73151e521f541fb38
parent343c0ee8d9529247001e1b49320831ca40591514 (diff)
Convert gprs_debug.cpp to C
-rw-r--r--debian/copyright2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/gprs_debug.c (renamed from src/gprs_debug.cpp)5
-rw-r--r--src/gprs_debug.h7
4 files changed, 8 insertions, 8 deletions
diff --git a/debian/copyright b/debian/copyright
index da506585..c714f1f2 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -30,7 +30,7 @@ Files: osmoappdesc.py
Copyright: 2013 by Katerina Barone-Adesi <kat.obsc@gmail.com>
License: GPL-3.0+
-Files: src/gprs_debug.cpp
+Files: src/gprs_debug.c
src/gprs_debug.h
src/pcu_main.cpp
src/pcu_l1_if.h
diff --git a/src/Makefile.am b/src/Makefile.am
index ccc40ac3..e7e94e0c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,7 +39,7 @@ AM_LDFLAGS = -lrt
noinst_LTLIBRARIES = libgprs.la
libgprs_la_SOURCES = \
- gprs_debug.cpp \
+ gprs_debug.c \
csn1.c \
csn1_dec.c \
csn1_enc.c \
diff --git a/src/gprs_debug.cpp b/src/gprs_debug.c
index 61c1c87e..03ef0830 100644
--- a/src/gprs_debug.cpp
+++ b/src/gprs_debug.c
@@ -1,7 +1,8 @@
-/* gprs_debug.cpp
+/* gprs_debug.c
*
* Copyright (C) 2012 Ivan Klyuchnikov
* Copyright (C) 2019 Harald Welte <laforge@gnumonks.org>
+ * Copyright (C) 2022 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -14,10 +15,8 @@
* GNU General Public License for more details.
*/
-extern "C" {
#include <osmocom/core/utils.h>
#include <osmocom/core/logging.h>
-}
#include <gprs_debug.h>
diff --git a/src/gprs_debug.h b/src/gprs_debug.h
index b683a634..320c7399 100644
--- a/src/gprs_debug.h
+++ b/src/gprs_debug.h
@@ -19,9 +19,6 @@
extern "C" {
#endif
#include <osmocom/core/logging.h>
-#ifdef __cplusplus
-};
-#endif
/* we used to have DBSSGP definded in each application, and applications telling
* libosmogb which sub-system to use. That creates problems and has been deprecated */
@@ -48,3 +45,7 @@ enum {
};
extern const struct log_info gprs_log_info;
+
+#ifdef __cplusplus
+};
+#endif