summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorSami Kerola2012-06-16 23:27:28 +0200
committerSami Kerola2012-06-17 18:00:00 +0200
commit66fc06653724de4a99ecb329b27a9c0dff8b7cf3 (patch)
tree400b5fabcffae601bbb8b250c93acbc3cf7e5384 /term-utils
parentlib/mbsalign: abort() when non-expected case is encountered (diff)
downloadkernel-qcow2-util-linux-66fc06653724de4a99ecb329b27a9c0dff8b7cf3.tar.gz
kernel-qcow2-util-linux-66fc06653724de4a99ecb329b27a9c0dff8b7cf3.tar.xz
kernel-qcow2-util-linux-66fc06653724de4a99ecb329b27a9c0dff8b7cf3.zip
scriptreplay: fix compiler format warning
scriptreplay.c:210:3: warning: format '%zd' expects argument of type 'signed size_t *', but argument 4 has type 'size_t *' [-Wformat] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/scriptreplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c
index 63dc6fce1..91c55c3c7 100644
--- a/term-utils/scriptreplay.c
+++ b/term-utils/scriptreplay.c
@@ -206,8 +206,7 @@ main(int argc, char *argv[])
double delay;
size_t blk;
char nl;
-
- if (fscanf(tfile, "%lf %zd%c\n", &delay, &blk, &nl) != 3 ||
+ if (fscanf(tfile, "%lf %zu%c\n", &delay, &blk, &nl) != 3 ||
nl != '\n') {
if (feof(tfile))
break;