From: Sami Kerola Date: Sat, 16 Jun 2012 21:27:28 +0000 (+0200) Subject: scriptreplay: fix compiler format warning X-Git-Tag: v2.22-rc1~267^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66fc06653724de4a99ecb329b27a9c0dff8b7cf3;p=thirdparty%2Futil-linux.git 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 --- diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 63dc6fce18..91c55c3c7a 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;