diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-24 07:00:17 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-24 07:00:17 -0500 |
commit | 84ea9668a9d40c68d4657ddf7bf033a763c0d90c (patch) | |
tree | c2baff9fb0baa41f10c28d8be63a4916a035d274 /gps2udp.c | |
parent | aab010629bff7636ffeddd7a313e4fd94a909843 (diff) | |
download | gpsd-84ea9668a9d40c68d4657ddf7bf033a763c0d90c.tar.gz |
Suppress compiler warnings.
Diffstat (limited to 'gps2udp.c')
-rw-r--r-- | gps2udp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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++) { |