]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptreplay: fix compiler format warning
authorSami Kerola <kerolasa@iki.fi>
Sat, 16 Jun 2012 21:27:28 +0000 (23:27 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sun, 17 Jun 2012 16:00:00 +0000 (18:00 +0200)
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>
term-utils/scriptreplay.c

index 63dc6fce18435f23ae57cbc1b7321e992da2d5a9..91c55c3c7a961607a3989f0307e5300ec0f13ab4 100644 (file)
@@ -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;