]> granicus.if.org Git - sysstat/commitdiff
cifsiostat: Fix compilation warning
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 9 Dec 2019 16:22:58 +0000 (17:22 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 9 Dec 2019 16:22:58 +0000 (17:22 +0100)
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 <sysstat@users.noreply.github.com>
cifsiostat.c

index a011813a1b9715cf275d8cf30295c20a20a12d86..d835f77f46dcff8d467dd5cc5bc83f23a6cfd978 100644 (file)
@@ -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;
                        }