diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -73,8 +73,8 @@ struct buf_elm { TAILQ_ENTRY(buf_elm) link; - int rpos; - int len; + size_t rpos; + size_t len; char ibuf[]; }; @@ -107,7 +107,6 @@ int main(int argc, char *argv[]) { - int cc; struct termios rtt, stt; struct winsize win; struct timeval tv, *tvp; @@ -116,6 +115,7 @@ char ibuf[BUFSIZ]; fd_set rfd, wfd; struct buf_elm *be; + ssize_t cc; int aflg, Fflg, kflg, pflg, ch, k, n, fcm; int flushtime, readstdin; int fm_fd, fm_log;