diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-15 17:29:38 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-15 17:29:38 -0700 |
commit | 51500bbd427387bb1847f6d00364091f2bc4f455 (patch) | |
tree | ec4d3526ac189f466c31cafe290e1311774eae80 /gpsd.c | |
parent | e67e4118a0cbb5b5cecc62e7440299d0b5b35a37 (diff) | |
download | gpsd-51500bbd427387bb1847f6d00364091f2bc4f455.tar.gz |
uint was rmoved in C99. If gpsd enforce C99, then uint must go.
uint is now unsigned int.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -11,6 +11,7 @@ #include <sys/time.h> /* for select() */ #include <sys/select.h> #include <stdio.h> +#include <stdint.h> /* for uint32_t, etc. */ #include <time.h> #include <string.h> #include <stdlib.h> @@ -1245,7 +1246,7 @@ static void handle_request(struct subscriber_t *sub, /* interpret defaults */ if (devconf.baudrate == DEVDEFAULT_BPS) devconf.baudrate = - (uint) gpsd_get_speed(device); + (unsigned int) gpsd_get_speed(device); if (devconf.parity == DEVDEFAULT_PARITY) devconf.stopbits = device->gpsdata.dev.stopbits; if (devconf.stopbits == DEVDEFAULT_STOPBITS) |