diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-05-28 16:04:28 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-05-28 16:38:26 -0400 |
commit | 88a9a169a5ccbb217817e5af89c85b31997212b1 (patch) | |
tree | ee8f7cfba5c65f284a77a5fe4e2f034d872b3fcd /gpsd.c | |
parent | 175b195a7cc1d9a766bec49940275b1351c37c62 (diff) | |
download | gpsd-88a9a169a5ccbb217817e5af89c85b31997212b1.tar.gz |
Deal with some minor compiler warnings from FreeBSD.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -300,7 +300,7 @@ static void adjust_max_fd(int fd, bool on) if (fd == maxfd) { int tfd; - for (maxfd = tfd = 0; tfd < FD_SETSIZE; tfd++) + for (maxfd = tfd = 0; tfd < (int)FD_SETSIZE; tfd++) if (FD_ISSET(tfd, &all_fds)) maxfd = tfd; } @@ -2192,7 +2192,7 @@ int main(int argc, char *argv[]) * implimentation error in FD_ISSET(). */ if (allocated_device(device) - && (0 <= device->gpsdata.gps_fd && device->gpsdata.gps_fd < FD_SETSIZE) + && (0 <= device->gpsdata.gps_fd && device->gpsdata.gps_fd < (socket_t)FD_SETSIZE) && FD_ISSET(device->gpsdata.gps_fd, &efds)) { deactivate_device(device); free_device(device); @@ -2473,7 +2473,7 @@ int main(int argc, char *argv[]) longjmp(restartbuf, 1); gpsd_log(&context.errout, LOG_WARN, - "received terminating signal %d.\n", signalled); + "received terminating signal %d.\n", (int)signalled); shutdown: gpsd_terminate(&context); |