Displaying 1 result from an estimated 1 matches for "end_length".
Did you mean:
cmd_length
2006 Aug 23
3
bcmxcp: stop whining (and log spamming)
...,8 @@ int get_answer(unsigned char *data, unsi
/* now we have the whole answer from the ups, we can checksum it */
if (!checksum_test(my_buf)) {
- ser_comm_fail("checksum error! ");
- return -1;
+ upsdebugx(2, "checksum error!");
+ return -1;
}
memcpy(data+end_length, my_buf+4, length);
--
Henning Brauer, hb@bsws.de, henning@openbsd.org
BS Web Services, http://bsws.de
OpenBSD-based Webhosting, Mail Services, Managed Servers, ...