summaryrefslogtreecommitdiff
path: root/tsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-07-19 15:56:57 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-07-19 15:56:57 +0000
commit0ade5ab3e40e0ecee67c85ebe129f77582149285 (patch)
treed4144c96d0a5ca8c03d5a8d0b22c6e89fa783f31 /tsip.c
parent976bba0b99600a42a58a134aeb98c0023877926e (diff)
downloadgpsd-0ade5ab3e40e0ecee67c85ebe129f77582149285.tar.gz
Add progress messages to gpsflash. splint cleanup.
Diffstat (limited to 'tsip.c')
-rw-r--r--tsip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tsip.c b/tsip.c
index 2893c156..63688f9b 100644
--- a/tsip.c
+++ b/tsip.c
@@ -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)