summaryrefslogtreecommitdiff
path: root/contrib/motosend.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
committerEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
commit9c7e8629876fb3ff115902e37fe562641ce9de11 (patch)
tree08ca2e4206ccc0dbda2ee946d907763ae9166aab /contrib/motosend.c
parentdb56959e1cf2670edb02f27f25580bb4272e9df2 (diff)
downloadgpsd-9c7e8629876fb3ff115902e37fe562641ce9de11.tar.gz
Clean up C and Python code-checker warnings.
Diffstat (limited to 'contrib/motosend.c')
-rw-r--r--contrib/motosend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/motosend.c b/contrib/motosend.c
index 1f2a25ca..c1d555d3 100644
--- a/contrib/motosend.c
+++ b/contrib/motosend.c
@@ -31,7 +31,7 @@ int main(int argc, char **argv) {
int speed, l, fd, n;
struct termios term;
char buf[BSIZ];
- time_t s, t;
+ time_t t;
struct timespec delay;
if (argc != 5){
@@ -84,6 +84,7 @@ int main(int argc, char **argv) {
tcflush(fd, TCIOFLUSH);
t = 0; n = 0;
while (1){
+ time_t s;
/* wait 1,000 uSec */
delay.tv_sec = 0;
delay.tv_nsec = 1000000L;