summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 17:29:38 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 17:29:38 -0700
commit51500bbd427387bb1847f6d00364091f2bc4f455 (patch)
treeec4d3526ac189f466c31cafe290e1311774eae80 /gpsd.c
parente67e4118a0cbb5b5cecc62e7440299d0b5b35a37 (diff)
downloadgpsd-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 4e4b7f0b..2056647a 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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)