summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-05-28 16:04:28 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-05-28 16:38:26 -0400
commit88a9a169a5ccbb217817e5af89c85b31997212b1 (patch)
treeee8f7cfba5c65f284a77a5fe4e2f034d872b3fcd /gpsd.c
parent175b195a7cc1d9a766bec49940275b1351c37c62 (diff)
downloadgpsd-88a9a169a5ccbb217817e5af89c85b31997212b1.tar.gz
Deal with some minor compiler warnings from FreeBSD.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsd.c b/gpsd.c
index 4af349a0..d98d4466 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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);