summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-24 07:00:17 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-24 07:00:17 -0500
commit84ea9668a9d40c68d4657ddf7bf033a763c0d90c (patch)
treec2baff9fb0baa41f10c28d8be63a4916a035d274 /gps2udp.c
parentaab010629bff7636ffeddd7a313e4fd94a909843 (diff)
downloadgpsd-84ea9668a9d40c68d4657ddf7bf033a763c0d90c.tar.gz
Suppress compiler warnings.
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gps2udp.c b/gps2udp.c
index d7da8207..22228b56 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -23,6 +23,7 @@
#include <termios.h>
#include <time.h>
#include <sys/time.h>
+#include <assert.h>
#ifndef S_SPLINT_S
#include <unistd.h>
@@ -291,7 +292,7 @@ static ssize_t read_gpsd(char *message, size_t len)
retry = 0;
}
if (debug > 0)
- (void)write (1, ".", 1);
+ ignore_return(write (1, ".", 1));
break;
default: /* we lost connection with gpsd */
@@ -461,7 +462,7 @@ int main(int argc, char **argv)
// strtok break original string
(void)strncpy((char *)packet, buffer, sizeof(packet));
for (j=0; j<MAX_INFO; j++) {
- info[j] = strsep((char **)&adrpkt, ",");
+ info[j] = (unsigned char *)strsep((char **)&adrpkt, ",");
}
for(i=0 ; i < (int)strlen((char *)info[5]); i++) {