pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmocom-bb/+/31116 )
Change subject: Get rid of openbsc leftover references
......................................................................
Get rid of openbsc leftover references
Get rid of the global variable since it's only used once inside a
function anyway.
Change-Id: I0b4f536b16f3693ef16de8505036943c3a30b1df
---
M src/host/layer23/src/common/main.c
M src/host/layer23/src/mobile/main.c
2 files changed, 12 insertions(+), 18 deletions(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, approved
laforge: Looks good to me, but someone else must approve
diff --git a/src/host/layer23/src/common/main.c b/src/host/layer23/src/common/main.c
index 82bbc60..c456488 100644
--- a/src/host/layer23/src/common/main.c
+++ b/src/host/layer23/src/common/main.c
@@ -65,14 +65,6 @@
int quit = 0;
struct gsmtap_inst *gsmtap_inst;
-const char *openbsc_copyright =
- "%s"
- "%s\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\n";
-
static void print_usage(const char *app)
{
printf("Usage: %s\n", app);
@@ -211,7 +203,12 @@
{
struct l23_app_info *app;
app = l23_app_info();
- printf(openbsc_copyright,
+
+ printf("%s"
+ "%s\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\n",
app && app->copyright ? app->copyright : "",
app && app->contribution ? app->contribution : "");
}
diff --git a/src/host/layer23/src/mobile/main.c b/src/host/layer23/src/mobile/main.c
index 4627b25..8938e30 100644
--- a/src/host/layer23/src/mobile/main.c
+++ b/src/host/layer23/src/mobile/main.c
@@ -74,14 +74,6 @@
const char *debug_default =
"DCS:DNB:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DSS:DLSMS:DPAG:DSUM:DSAP:DGPS:DMOB:DPRIM:DLUA:DGAPK";
-const char *openbsc_copyright =
- "%s"
- "%s\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\n";
-
static void print_usage(const char *app)
{
printf("Usage: %s\n", app);
@@ -216,7 +208,12 @@
{
struct l23_app_info *app;
app = l23_app_info();
- printf(openbsc_copyright,
+
+ printf("%s"
+ "%s\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\n",
app && app->copyright ? app->copyright : "",
app && app->contribution ? app->contribution : "");
}
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/31116
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I0b4f536b16f3693ef16de8505036943c3a30b1df
Gerrit-Change-Number: 31116
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged