From 032607920d8d6f335e3bfbca1fc76e9d77dc7457 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 5 Nov 2013 20:21:42 -0500 Subject: Full splint cleanup. Partial cppcheck cleanup. --- contrib/binlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/binlog.c') 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); -- cgit v1.2.1