summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
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)