[PATCH] [RFC] src: add prefix osmocom_ to all functions in libosmocore

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

pablo at gnumonks.org pablo at gnumonks.org
Sun Mar 27 19:37:54 UTC 2011


From: Pablo Neira Ayuso <pablo at gnumonks.org>

This patch is a RFC, I can add the prefix osmocom_ to all functions
in libosmocore to fix with the existing namespace pollution.

This task was proposed by Harald.

Let me know if you are OK with this approach and I'll send a
patchset along this week.
---
 include/osmocom/core/backtrace.h |    2 +-
 src/backtrace.c                  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/osmocom/core/backtrace.h b/include/osmocom/core/backtrace.h
index bbbb2c2..7c248aa 100644
--- a/include/osmocom/core/backtrace.h
+++ b/include/osmocom/core/backtrace.h
@@ -1,6 +1,6 @@
 #ifndef _OSMO_BACKTRACE_H_
 #define _OSMO_BACKTRACE_H_
 
-void generate_backtrace();
+void osmocom_generate_backtrace();
 
 #endif
diff --git a/src/backtrace.c b/src/backtrace.c
index ecd6b9c..5c609bb 100644
--- a/src/backtrace.c
+++ b/src/backtrace.c
@@ -29,7 +29,7 @@
 
 #ifdef HAVE_EXECINFO_H
 #include <execinfo.h>
-void generate_backtrace()
+void osmocom_generate_backtrace()
 {
 	int i, nptrs;
 	void *buffer[100];
-- 
1.7.2.3





More information about the OpenBSC mailing list