Commit c2fe5759f4fc737ea16221a6514f909e11e840f1
1 parent
9eb1d46b
Fix build warnings.
Showing
2 changed files
with
2 additions
and
2 deletions
pts/Makefile
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) |