summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2018-05-14 11:35:37 +0200
committerKarel Zak2018-05-14 11:35:37 +0200
commit0da73643b539294a9f89507a1bd088ba64d7eb07 (patch)
treefe921c41a6d06838828fbb0fc6a740f5f73c6ae3
parentscript: add the -o/--output-limit option. Fix race test. (diff)
downloadkernel-qcow2-util-linux-0da73643b539294a9f89507a1bd088ba64d7eb07.tar.gz
kernel-qcow2-util-linux-0da73643b539294a9f89507a1bd088ba64d7eb07.tar.xz
kernel-qcow2-util-linux-0da73643b539294a9f89507a1bd088ba64d7eb07.zip
script: use uint64_t for file sizes
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--term-utils/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term-utils/script.c b/term-utils/script.c
index 102f7ec32..c7d951d2e 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -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 */