summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-09-04 11:17:47 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-09-07 10:46:10 +0200
commit1a8dbc4fc93698b89b35254286317f1a1d8dfaa5 (patch)
tree5cc82941aca7a745b1393c9672ab4458bd44c094
parent56cb7299071c8472a240a293036be3074f3eb4e0 (diff)
gbproxy: Fix warnings
This patch fixes the remaining 'unused' warnings. Sponsored-by: On-Waves ehf
-rw-r--r--openbsc/src/gprs/gb_proxy.c1
-rw-r--r--openbsc/src/gprs/gprs_gb_parse.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c
index 965059bdb..a61a3071b 100644
--- a/openbsc/src/gprs/gb_proxy.c
+++ b/openbsc/src/gprs/gb_proxy.c
@@ -116,7 +116,6 @@ static void gprs_push_llc_ui(struct msgb *msg,
const uint8_t e_bit = 0;
const uint8_t pm_bit = 1;
const uint8_t cr_bit = is_uplink ? 0 : 1;
- size_t msg_size = msgb_length(msg);
uint8_t *llc;
uint8_t *fcs_field;
uint32_t fcs;
diff --git a/openbsc/src/gprs/gprs_gb_parse.c b/openbsc/src/gprs/gprs_gb_parse.c
index ef4a4d108..fe0881783 100644
--- a/openbsc/src/gprs/gprs_gb_parse.c
+++ b/openbsc/src/gprs/gprs_gb_parse.c
@@ -224,7 +224,6 @@ static int gprs_gb_parse_gmm_detach_req(uint8_t *data, size_t data_len,
{
uint8_t *value;
size_t value_len;
- int detach_type;
int power_off;
parse_ctx->llc_msg_name = "DETACH_REQ";
@@ -235,7 +234,6 @@ static int gprs_gb_parse_gmm_detach_req(uint8_t *data, size_t data_len,
/* invalid */
return 0;
- detach_type = *value & 0x07;
power_off = *value & 0x08 ? 1 : 0;
if (!parse_ctx->to_bss) {