diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-19 15:56:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-19 15:56:57 +0000 |
commit | 0ade5ab3e40e0ecee67c85ebe129f77582149285 (patch) | |
tree | d4144c96d0a5ca8c03d5a8d0b22c6e89fa783f31 /tsip.c | |
parent | 976bba0b99600a42a58a134aeb98c0023877926e (diff) | |
download | gpsd-0ade5ab3e40e0ecee67c85ebe129f77582149285.tar.gz |
Add progress messages to gpsflash. splint cleanup.
Diffstat (limited to 'tsip.c')
-rw-r--r-- | tsip.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -16,7 +16,7 @@ #ifdef TSIP_ENABLE -static int tsip_write(int fd, unsigned int id, unsigned char *buf, int len) +static int tsip_write(int fd, unsigned int id, unsigned char *buf, size_t len) { char buf2[BUFSIZ]; @@ -82,8 +82,10 @@ static void tsip_initializer(struct gps_device_t *session) static void tsip_wrapup(struct gps_device_t *session) { /* restore saved parity and stopbits when leaving TSIP mode */ - gpsd_set_speed(session, session->gpsdata.baudrate, - session->tsip.parity, session->tsip.stopbits); + gpsd_set_speed(session, + session->gpsdata.baudrate, + (unsigned char)session->tsip.parity, + session->tsip.stopbits); } static bool tsip_speed_switch(struct gps_device_t *session, unsigned int speed) |