]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: use uint64_t for file sizes
authorKarel Zak <kzak@redhat.com>
Mon, 14 May 2018 09:35:37 +0000 (11:35 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 14 May 2018 09:35:37 +0000 (11:35 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c

index 102f7ec3293dc8c551048fbe68aee802164a65b5..c7d951d2e6fe7013eced8b2769fa5cd464de49d5 100644 (file)
@@ -105,8 +105,8 @@ struct script_control {
        FILE *typescriptfp;     /* output file pointer */
        char *tname;            /* timing file path */
        FILE *timingfp;         /* timing file pointer */
-       ssize_t outsz;          /* current output file size */
-       ssize_t maxsz;          /* maximum output file size */
+       uint64_t outsz;         /* current output file size */
+       uint64_t maxsz;         /* maximum output file size */
        struct timeval oldtime; /* previous write or command start time */
        int master;             /* pseudoterminal master file descriptor */
        int slave;              /* pseudoterminal slave file descriptor */