SHARE
TWEET

patch for VX-Manager (vxclone)

jcomeau_ictx Sep 15th, 2013 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -up ./libvxmngr/vx7com.c.orig ./libvxmngr/vx7com.c
  2. --- ./libvxmngr/vx7com.c.orig   2013-09-15 15:40:12.000000000 -0700
  3. +++ ./libvxmngr/vx7com.c        2013-09-15 15:43:13.000000000 -0700
  4. @@ -35,6 +35,7 @@
  5.  #include <errno.h>
  6.  #include <unistd.h>
  7.  #include <fcntl.h>
  8. +#include <sys/types.h>
  9.  #include <sys/stat.h>
  10.  
  11.  struct termios tio_restore;
  12. diff -up ./libvxmngr/vx7sum.c.orig ./libvxmngr/vx7sum.c
  13. --- ./libvxmngr/vx7sum.c.orig   2013-09-15 15:48:06.000000000 -0700
  14. +++ ./libvxmngr/vx7sum.c        2013-09-15 16:00:04.000000000 -0700
  15. @@ -79,11 +79,11 @@ int vx7_check_sum (const char *buf)
  16.  /* insert new check sum*/
  17.  int vx7_insert_sum (char *buf)
  18.  {
  19. -  (unsigned char) buf[VX7_ChkSum1_ADR] =
  20. +  buf[VX7_ChkSum1_ADR] =
  21.      vx7_sum_up (buf,VX7_ChkSum1_SRT,VX7_ChkSum1_ADR-1) & 0xff;
  22. -  (unsigned char) buf[VX7_ChkSum2_ADR] =
  23. +  buf[VX7_ChkSum2_ADR] =
  24.      vx7_sum_up (buf,VX7_ChkSum2_SRT,VX7_ChkSum2_ADR-1) & 0xff;
  25. -  (unsigned char) buf[VX7_ChkSum3_ADR] =
  26. +  buf[VX7_ChkSum3_ADR] =
  27.      vx7_sum_up (buf,VX7_ChkSum3_SRT,VX7_ChkSum3_ADR-1) & 0xff;
  28.    return (unsigned char) buf[VX7_ChkSum3_ADR];
  29.  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top