diff --git a/pts/Makefile b/pts/Makefile index 07f9b96..d6b483b 100644 --- a/pts/Makefile +++ b/pts/Makefile @@ -1,7 +1,7 @@ CC=gcc -FLAGS= -Wall -O2 -D_GNU_SOURCE +FLAGS= -Wall -O2 -D_GNU_SOURCE -Wno-unused-but-set-variable all: $(CC) $(FLAGS) tty0tty.c -o tty0tty diff --git a/pts/tty0tty.c b/pts/tty0tty.c index 161e5b6..22c526b 100644 --- a/pts/tty0tty.c +++ b/pts/tty0tty.c @@ -141,7 +141,7 @@ copydata(int fdfrom, int fdto) if (bw <= 0) { // kernel buffer may be full, but we can recover - fprintf(stderr, "Write error, br=%d bw=%d\n", br, bw); + fprintf(stderr, "Write error, br=%d bw=%d\n", (int) br, (int) bw); usleep(500000); // discard input while (read(fdfrom, buffer, 1024) > 0)