From 20ba6c57c48dd75e4345ad4e4bd75e7e66e0dc3b Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Mon, 9 Dec 2019 17:22:58 +0100 Subject: [PATCH] cifsiostat: Fix compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix wrong type used to read number of open files. cifsiostat.c:398:18: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long long unsigned int *’ [-Wformat=] Signed-off-by: Sebastien GODARD --- cifsiostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cifsiostat.c b/cifsiostat.c index a011813..d835f77 100644 --- a/cifsiostat.c +++ b/cifsiostat.c @@ -395,7 +395,7 @@ void read_cifs_stat(int curr) all_open += aux_open; } else if (!strncmp(line, "Open files:", 11)) { - sscanf(line, "Open files: %llu total (local), %d", + sscanf(line, "Open files: %llu total (local), %llu", &all_open, &aux_open); all_open += aux_open; } -- 2.50.1