diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-20 11:11:01 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-20 11:11:01 +0100 |
commit | e616863190aa9ffcdfab998f133306d7638045c0 (patch) | |
tree | 9526ae7daea1c40fb8c80905f3cd42979fa151c3 /src/isup.c | |
parent | 6b7ce74b8a40d207ef5e0764f981b1aae5551d24 (diff) |
misc: Address various compiler warnings in the code
Diffstat (limited to 'src/isup.c')
-rw-r--r-- | src/isup.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; |