summaryrefslogtreecommitdiff
path: root/xpp/mpp_funcs.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-08-12 19:21:01 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-08-12 19:21:01 +0000
commitbf457f35a818448107aad560336df671755e589d (patch)
treebfa21efd31af7271177c8e2b3e63ec2c6fd75995 /xpp/mpp_funcs.c
parent6c67be02ffa70bc95357fd6b311ea7fbcdb8f6aa (diff)
xpp: cleanup gcc warnings and one real astribank_tool bug
xpp rev: 7281 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6976 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/mpp_funcs.c')
-rw-r--r--xpp/mpp_funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/mpp_funcs.c b/xpp/mpp_funcs.c
index c52397f..53b1a7a 100644
--- a/xpp/mpp_funcs.c
+++ b/xpp/mpp_funcs.c
@@ -605,9 +605,9 @@ int mpp_eeprom_blk_rd(struct astribank_device *astribank, uint8_t *buf, uint16_t
size = ret;
goto out;
}
+ size = reply->header.len - sizeof(struct mpp_header) - sizeof(struct d_EEPROM_BLK_RD_REPLY);
INFO("size=%d offset=0x%X\n", size, CMD_FIELD(reply, EEPROM_BLK_RD_REPLY, offset));
dump_packet(LOG_DEBUG, "BLK_RD", (char *)reply, ret);
- size = reply->header.len - sizeof(struct mpp_header) - sizeof(struct d_EEPROM_BLK_RD_REPLY);
if(size > len) {
ERR("Truncating reply (was %d, now %d)\n", size, len);
size = len;