summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++) {