diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2022-10-27 15:10:30 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2022-10-27 19:49:18 +0000 |
commit | 3276866f40caaf3d5605d5695f460cbdf035ef45 (patch) | |
tree | 1156305e692896fe42e61b3a5881c5a180a5fbc0 /usr.bin/script/script.c | |
parent | 8e9a651acbe523f03b22d9c19c0315f686eb14d6 (diff) | |
download | src-3276866f40caaf3d5605d5695f460cbdf035ef45.tar.gz src-3276866f40caaf3d5605d5695f460cbdf035ef45.zip |
script: Use size_t / ssize_t where needed.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37177
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r-- | usr.bin/script/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 3d5b3231182e..22d64a1f2d16 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -73,8 +73,8 @@ struct stamp { struct buf_elm { TAILQ_ENTRY(buf_elm) link; - int rpos; - int len; + size_t rpos; + size_t len; char ibuf[]; }; @@ -107,7 +107,6 @@ static void usage(void); int main(int argc, char *argv[]) { - int cc; struct termios rtt, stt; struct winsize win; struct timeval tv, *tvp; @@ -116,6 +115,7 @@ main(int argc, char *argv[]) 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; |