summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-11 15:54:34 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-11 15:34:05 +0000
commitdfe48fdecf5e953fa5c08053e8781d4daf6ad4a4 (patch)
tree23a20c9146c4c2f7594f52ed2cb808e5e090e0be
parentaf9a9b0b44323b4722e7ffbe478d91380f1d8056 (diff)
bs11_config: remove compiler waring about unused variable
bs11_config.c:78:22: warning: ‘too_fast’ defined but not used [-Wunused-const-variable=] static const uint8_t too_fast[] = { 0x12, 0x80, 0x00, 0x00, 0x02, 0x02 }; ^~~~~~~~ Change-Id: I1fdb9645128c2dfeb489bf75e89ab0adea919d2b
-rw-r--r--openbsc/src/utils/bs11_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/utils/bs11_config.c b/openbsc/src/utils/bs11_config.c
index 7356b8204..20b9ed335 100644
--- a/openbsc/src/utils/bs11_config.c
+++ b/openbsc/src/utils/bs11_config.c
@@ -75,8 +75,6 @@ static const uint8_t obj_pa0_attr[] = {
static const char *trx1_password = "1111111111";
#define TEI_OML 25
-static const uint8_t too_fast[] = { 0x12, 0x80, 0x00, 0x00, 0x02, 0x02 };
-
/* dummy function to keep gsm_data.c happy */
struct osmo_counter *osmo_counter_alloc(const char *name)
{
@@ -653,6 +651,8 @@ static int abis_nm_bs11cfg_rcvmsg(struct msgb *rx_msg)
int rc = -1;
#if 0
+ const uint8_t too_fast[] = { 0x12, 0x80, 0x00, 0x00, 0x02, 0x02 };
+
if (rx_msg->len < LAPD_HDR_LEN
+ sizeof(struct abis_om_fom_hdr)
+ sizeof(struct abis_om_hdr)) {