From: Sebastien GODARD Date: Mon, 9 Dec 2019 16:22:58 +0000 (+0100) Subject: cifsiostat: Fix compilation warning X-Git-Tag: v12.3.1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20ba6c57c48dd75e4345ad4e4bd75e7e66e0dc3b;p=sysstat cifsiostat: Fix compilation warning 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 --- 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; }