Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -up ./libvxmngr/vx7com.c.orig ./libvxmngr/vx7com.c
- --- ./libvxmngr/vx7com.c.orig 2013-09-15 15:40:12.000000000 -0700
- +++ ./libvxmngr/vx7com.c 2013-09-15 15:43:13.000000000 -0700
- @@ -35,6 +35,7 @@
- #include <errno.h>
- #include <unistd.h>
- #include <fcntl.h>
- +#include <sys/types.h>
- #include <sys/stat.h>
- struct termios tio_restore;
- diff -up ./libvxmngr/vx7sum.c.orig ./libvxmngr/vx7sum.c
- --- ./libvxmngr/vx7sum.c.orig 2013-09-15 15:48:06.000000000 -0700
- +++ ./libvxmngr/vx7sum.c 2013-09-15 16:00:04.000000000 -0700
- @@ -79,11 +79,11 @@ int vx7_check_sum (const char *buf)
- /* insert new check sum*/
- int vx7_insert_sum (char *buf)
- {
- - (unsigned char) buf[VX7_ChkSum1_ADR] =
- + buf[VX7_ChkSum1_ADR] =
- vx7_sum_up (buf,VX7_ChkSum1_SRT,VX7_ChkSum1_ADR-1) & 0xff;
- - (unsigned char) buf[VX7_ChkSum2_ADR] =
- + buf[VX7_ChkSum2_ADR] =
- vx7_sum_up (buf,VX7_ChkSum2_SRT,VX7_ChkSum2_ADR-1) & 0xff;
- - (unsigned char) buf[VX7_ChkSum3_ADR] =
- + buf[VX7_ChkSum3_ADR] =
- vx7_sum_up (buf,VX7_ChkSum3_SRT,VX7_ChkSum3_ADR-1) & 0xff;
- return (unsigned char) buf[VX7_ChkSum3_ADR];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement