Commit c2fe5759f4fc737ea16221a6514f909e11e840f1

Authored by Jeff Buchbinder
1 parent 9eb1d46b

Fix build warnings.

Showing 2 changed files with 2 additions and 2 deletions
pts/Makefile
1 1
2 CC=gcc 2 CC=gcc
3 3
4 -FLAGS= -Wall -O2 -D_GNU_SOURCE 4 +FLAGS= -Wall -O2 -D_GNU_SOURCE -Wno-unused-but-set-variable
5 5
6 all: 6 all:
7 $(CC) $(FLAGS) tty0tty.c -o tty0tty 7 $(CC) $(FLAGS) tty0tty.c -o tty0tty
pts/tty0tty.c
@@ -141,7 +141,7 @@ copydata(int fdfrom, int fdto) @@ -141,7 +141,7 @@ copydata(int fdfrom, int fdto)
141 if (bw <= 0) 141 if (bw <= 0)
142 { 142 {
143 // kernel buffer may be full, but we can recover 143 // kernel buffer may be full, but we can recover
144 - fprintf(stderr, "Write error, br=%d bw=%d\n", br, bw); 144 + fprintf(stderr, "Write error, br=%d bw=%d\n", (int) br, (int) bw);
145 usleep(500000); 145 usleep(500000);
146 // discard input 146 // discard input
147 while (read(fdfrom, buffer, 1024) > 0) 147 while (read(fdfrom, buffer, 1024) > 0)