]> xenbits.xensource.com Git - libvirt.git/commitdiff
domtop: Remove unused variable
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Aug 2014 12:40:52 +0000 (14:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Aug 2014 12:40:52 +0000 (14:40 +0200)
The variable 'k' in the print_cpu_usage function is not used anywhere
and can fire a warning on some compilers.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
examples/domtop/domtop.c

index 204fdc328d6878a0b3e3807aeb7f4c2926290c2b..e50988ed27bdb07702ef437e53eabadb27afe041 100644 (file)
@@ -199,7 +199,7 @@ print_cpu_usage(const char *dom_name,
                 virTypedParameterPtr now_params,
                 size_t now_nparams)
 {
-    size_t i, j, k;
+    size_t i, j;
     size_t nparams = now_nparams;
     bool delim = false;