aboutsummaryrefslogtreecommitdiffstats
path: root/src/isup.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-20 11:11:01 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-11-20 11:11:01 +0100
commite616863190aa9ffcdfab998f133306d7638045c0 (patch)
tree9526ae7daea1c40fb8c80905f3cd42979fa151c3 /src/isup.c
parent6b7ce74b8a40d207ef5e0764f981b1aae5551d24 (diff)
misc: Address various compiler warnings in the code
Diffstat (limited to 'src/isup.c')
-rw-r--r--src/isup.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/isup.c b/src/isup.c
index 404dbb1..31b4221 100644
--- a/src/isup.c
+++ b/src/isup.c
@@ -94,7 +94,6 @@ static struct msgb *isup_simple_alloc(int cic, int msg_type)
int isup_parse_status(const uint8_t *data, uint8_t in_length)
{
uint8_t ptr;
- uint8_t length;
if (in_length < 3) {
LOGP(DISUP, LOGL_ERROR, "This needs three bytes.\n");
@@ -107,8 +106,6 @@ int isup_parse_status(const uint8_t *data, uint8_t in_length)
return -1;
}
- length = data[0 + ptr];
-
if (1 + ptr + 1 > in_length) {
LOGP(DISUP, LOGL_ERROR, "No space for the data.\n");
return -1;