summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 6aedcffb..734efa28 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -541,7 +541,7 @@ static int handle_gpsd_request(int cfd, char *buf, int buflen)
if (whoami->device) {
if ( whoami->device->gpsdata.parity == 0 ) {
/* zero parity breaks the next snprintf */
- whoami->device->gpsdata.parity = 'N';
+ whoami->device->gpsdata.parity = (unsigned)'N';
}
(void)snprintf(phrase, sizeof(phrase), ",B=%d %d %c %u",
(int)gpsd_get_speed(&whoami->device->ttyset),