summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-28 18:05:01 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-28 18:05:01 -0400
commita77b95b57475c2856707e91b197f8aaa8e5eb407 (patch)
treed466b39a60be395463097ab3ab2592606602ef62 /gps2udp.c
parent382d597d018efcab0bb2cec19cb257e8048ba913 (diff)
downloadgpsd-a77b95b57475c2856707e91b197f8aaa8e5eb407.tar.gz
Banish some compiler warnings.
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gps2udp.c b/gps2udp.c
index 52eaa29e..ad082786 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>
@@ -290,7 +291,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 */