patch-sirfflash_c 514 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- gpsd-2.37.orig/sirfflash.c 2007-10-12 15:44:48.000000000 +0200
  3. +++ gpsd-2.37/sirfflash.c 2008-10-09 14:17:23.000000000 +0200
  4. @@ -166,7 +166,7 @@ sirfSetProto(int pfd, struct termios *te
  5. sirf[7] = sirf[6] = (unsigned char)proto;
  6. /*@i@*/i = htonl(speed); /* borrow "i" to put speed into proper byte order */
  7. - /*@i@*/bcopy(&i, sirf+8, 4);
  8. + /*@i@*/memcpy(sirf+8, &i, 4);
  9. /* send at whatever baud we're currently using */
  10. (void)sirf_write(pfd, sirf);