patch-sirfflash_c 464 B

1234567891011
  1. --- gpsd-2.39.orig/sirfflash.c 2009-01-28 21:53:47.000000000 +0100
  2. +++ gpsd-2.39/sirfflash.c 2010-01-16 09:27:49.000000000 +0100
  3. @@ -193,7 +193,7 @@ sirfSetProto(int pfd, struct termios *te
  4. sirf[7] = sirf[6] = (unsigned char)proto;
  5. /*@i@*/i = htonl(speed); /* borrow "i" to put speed into proper byte order */
  6. - /*@i@*/bcopy(&i, sirf+8, 4);
  7. + /*@i@*/memcpy(sirf+8, &i, 4);
  8. /* send at whatever baud we're currently using */
  9. (void)sirf_write(pfd, sirf);