summaryrefslogtreecommitdiff
path: root/contrib/binlog.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-05 20:21:42 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-05 20:21:42 -0500
commit032607920d8d6f335e3bfbca1fc76e9d77dc7457 (patch)
tree632e28102497e16d43be91ca0dbcec5a7ed5041c /contrib/binlog.c
parent6a0157a94666ae5a653bc297aedc1f6c8f1eaf3a (diff)
downloadgpsd-032607920d8d6f335e3bfbca1fc76e9d77dc7457.tar.gz
Full splint cleanup. Partial cppcheck cleanup.
Diffstat (limited to 'contrib/binlog.c')
-rw-r--r--contrib/binlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/binlog.c b/contrib/binlog.c
index 1506be88..8e5e8d9e 100644
--- a/contrib/binlog.c
+++ b/contrib/binlog.c
@@ -16,7 +16,7 @@
void spinner(int );
int main(int argc, char **argv) {
- int speed, n, l, ifd, ofd;
+ int speed, n, ifd, ofd;
struct termios term;
char buf[BUFSIZ];
@@ -58,7 +58,7 @@ int main(int argc, char **argv) {
tcflush(ifd, TCIOFLUSH);
n = 0;
while (1){
- l = read(ifd, buf, BUFSIZ);
+ int l = read(ifd, buf, BUFSIZ);
if (l > 0)
assert(write(ofd, buf, l) > 0);
usleep(1000);