aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 10:19:04 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 10:19:04 +0100
commita21a96f9870cbbdd5561952b8d606fc423808fa9 (patch)
treed75c70d782f0385b9bf374421112d15724f80ba3
parentb3121c5b3f1f76c742ce36b75951ef8a3fde46ae (diff)
Move the copyright and version header to bsc_init.c
The copyright/version will be used from within the VTY code which might be linked into binaries even when bsc_hack.c is not linked into it.
-rw-r--r--openbsc/src/bsc_hack.c12
-rw-r--r--openbsc/src/bsc_init.c14
2 files changed, 16 insertions, 10 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index 2405ceebd..edc93d948 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -37,21 +37,13 @@
#include <osmocore/talloc.h>
#include <openbsc/signal.h>
-#include "../bscconfig.h"
-
/* MCC and MNC for the Location Area Identifier */
static struct debug_target *stderr_target;
struct gsm_network *bsc_gsmnet = 0;
static const char *database_name = "hlr.sqlite3";
static const char *config_file = "openbsc.cfg";
-const char *openbsc_version = "OpenBSC " PACKAGE_VERSION;
-const char *openbsc_copyright =
- "Copyright (C) 2008-2010 Harald Welte, Holger Freyther\n"
- "Contributions by Daniel Willmann, Jan Lübbe,Stefan Schmidt\n"
- "Dieter Spaar, Andreas Eversberg\n\n"
- "License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>\n"
- "This is free software: you are free to change and redistribute it.\n"
- "There is NO WARRANTY, to the extent permitted by law.\n";
+extern const char *openbsc_version;
+extern const char *openbsc_copyright;
/* timer to store statistics */
#define DB_SYNC_INTERVAL 60, 0
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index f3436621f..678672026 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -33,11 +33,25 @@
#include <openbsc/signal.h>
#include <osmocore/talloc.h>
+#include "../bscconfig.h"
+
+
/* global pointer to the gsm network data structure */
extern struct gsm_network *bsc_gsmnet;
static void patch_nm_tables(struct gsm_bts *bts);
+
+const char *openbsc_version = "OpenBSC " PACKAGE_VERSION;
+const char *openbsc_copyright =
+ "Copyright (C) 2008-2010 Harald Welte, Holger Freyther\n"
+ "Contributions by Daniel Willmann, Jan Lübbe,Stefan Schmidt\n"
+ "Dieter Spaar, Andreas Eversberg\n\n"
+ "License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>\n"
+ "This is free software: you are free to change and redistribute it.\n"
+ "There is NO WARRANTY, to the extent permitted by law.\n";
+
+
/* The following definitions are for OM and NM packets that we cannot yet
* generate by code but we just pass on */