The branch main has been updated by des:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3276866f40caaf3d5605d5695f460cbdf035ef45

commit 3276866f40caaf3d5605d5695f460cbdf035ef45
Author:     Dag-Erling Smørgrav <d...@freebsd.org>
AuthorDate: 2022-10-27 15:10:30 +0000
Commit:     Dag-Erling Smørgrav <d...@freebsd.org>
CommitDate: 2022-10-27 19:49:18 +0000

    script: Use size_t / ssize_t where needed.
    
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D37177
---
 usr.bin/script/script.c | 6 +++---
 1 file 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;

Reply via email to