summaryrefslogtreecommitdiff
path: root/contrib/binlog.c
diff options
context:
space:
mode:
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);