Displaying 2 results from an estimated 2 matches for "checksum_test".
2006 Aug 23
3
bcmxcp: stop whining (and log spamming)
...aying around...)
so stop whining already.
$OpenBSD$
--- drivers/bcmxcp_ser.c.orig Wed Aug 23 11:15:54 2006
+++ drivers/bcmxcp_ser.c Wed Aug 23 11:26:37 2006
@@ -168,8 +168,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 Webhosti...
2012 Feb 19
0
[nut-commits] svn commit r3448 - trunk/drivers (extern variables)
...t;
> typedef struct { /* A place to store status info and other data not for NUT */
> @@ -378,7 +378,7 @@
> int alarm_replace_battery; /* Battery needs replacement! */
> } BCMXCP_STATUS_t;
>
> -BCMXCP_STATUS_t
> +extern BCMXCP_STATUS_t
> bcmxcp_status;
>
> int checksum_test(const unsigned char*);
>
> _______________________________________________
> nut-commits mailing list
> nut-commits at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-commits
--
Charles Lepple
clepple at gmail