summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-09 11:46:38 -0700
committerGary E. Miller <gem@rellim.com>2015-03-09 11:46:38 -0700
commit65afb104bc4e73c957581d76d950e7dc960f1aa8 (patch)
treeb4cc95e6d2c33631b048de92259fcf4445c9d856 /serial.c
parentf7ffdfedaa6eb678f743d1096ff0b1fbbd160a94 (diff)
downloadgpsd-65afb104bc4e73c957581d76d950e7dc960f1aa8.tar.gz
OS X, fix warning of missing cast speed_t -> unsigned long
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial.c b/serial.c
index df6f9040..6e51ba95 100644
--- a/serial.c
+++ b/serial.c
@@ -375,8 +375,8 @@ void gpsd_set_speed(struct gps_device_t *session,
(void)tcflush(session->gpsdata.gps_fd, TCIOFLUSH);
}
gpsd_log(&session->context->errout, LOG_INF,
- "speed %u, %d%c%d\n",
- gpsd_get_speed(session), 9 - stopbits, parity,
+ "speed %lu, %d%c%d\n",
+ (unsigned long)gpsd_get_speed(session), 9 - stopbits, parity,
stopbits);
session->gpsdata.dev.baudrate = (unsigned int)speed;