X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcontextswitch.c;h=461fb0a9da502b808348e14f32360fe19cce854c;hp=1d73f0417d0d125401def305d9bf76e8d6634511;hb=7111bb6df7628edce3a8e538b386fbe27633a191;hpb=f374b72032a227a75b6bc9ae574cd28abbc16f24 diff --git a/src/contextswitch.c b/src/contextswitch.c index 1d73f041..461fb0a9 100644 --- a/src/contextswitch.c +++ b/src/contextswitch.c @@ -69,7 +69,7 @@ static int cs_read(void) { if (status != 0) { ERROR("contextswitch plugin: sysctlbyname " "(vm.stats.sys.v_swtch) failed"); - return (-1); + return -1; } cs_submit(value); @@ -87,7 +87,7 @@ static int cs_read(void) { if (fh == NULL) { ERROR("contextswitch plugin: unable to open /proc/stat: %s", sstrerror(errno, buffer, sizeof(buffer))); - return (-1); + return -1; } while (fgets(buffer, sizeof(buffer), fh) != NULL) { @@ -129,7 +129,7 @@ static int cs_read(void) { char errbuf[1024]; ERROR("contextswitch plugin: perfstat_cpu_total: %s", sstrerror(errno, errbuf, sizeof(errbuf))); - return (-1); + return -1; } cs_submit(perfcputotal.pswitch);