From 65afb104bc4e73c957581d76d950e7dc960f1aa8 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 9 Mar 2015 11:46:38 -0700 Subject: OS X, fix warning of missing cast speed_t -> unsigned long --- serial.c | 4 ++-- 1 file 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; -- cgit v1.2.1