X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fxencpu.c;h=59fbcb982d70bbd7b9668b44adffeef8abe564fd;hb=92811dfcb772a4613b0938b010869cab536acc3e;hp=2b87235025d09f357e3078ae739b5eef34e3dcf4;hpb=01e2d29ebc5dec07daab935da3fcee5bb9c7d620;p=collectd.git diff --git a/src/xencpu.c b/src/xencpu.c index 2b872350..59fbcb98 100644 --- a/src/xencpu.c +++ b/src/xencpu.c @@ -20,6 +20,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -53,7 +54,7 @@ static int xencpu_init (void) { ERROR ("xencpu: xc_interface_open() failed"); return (-1); - }; + } xc_physinfo_t *physinfo; @@ -71,7 +72,7 @@ static int xencpu_init (void) xc_interface_close(xc_handle); free(physinfo); return (-1); - }; + } num_cpus = physinfo->nr_cpus; free(physinfo);