diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-11 02:19:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-11 02:19:11 +0000 |
commit | 2db04be28c3fec04d86fc19f06230f7f074ed98a (patch) | |
tree | ee532e44f0d6a2b3ee1a389daf13a5d4c23e7d2a /driver_proto.c | |
parent | f4ea08286cf514a86f643a2fdb1c315fa6454468 (diff) | |
download | gpsd-2db04be28c3fec04d86fc19f06230f7f074ed98a.tar.gz |
First cut at iTrax and iTalk support.
Diffstat (limited to 'driver_proto.c')
-rw-r--r-- | driver_proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_proto.c b/driver_proto.c index f4521c67..a00b50e5 100644 --- a/driver_proto.c +++ b/driver_proto.c @@ -32,8 +32,9 @@ static bool proto_write(int fd, unsigned char *msg, size_t msglen) { for (i = 0; i < msglen; i++) (void)snprintf((char*)buf+strlen((char *)buf),sizeof((char*)buf)-strlen((char*)buf), " %02x", msg[i]); + len = (size_t)strlen(buf); gpsd_report(4, "writing proto control type %02x:%s\n", msg[0], buf); - ok = (write(fd, stuffed, len) == (ssize_t)len); + ok = (write(fd, buf, len) == (ssize_t)len); (void)tcdrain(fd); return(ok); } @@ -98,7 +99,6 @@ static gps_mask_t proto_parse_input(struct gps_device_t *session) static bool proto_set_mode(struct gps_device_t *session, speed_t speed, bool mode) { - unsigned char tmp8; /*@ +charint @*/ unsigned char msg[] = {/* FILL ME*/}; |