From 0d85af28727255ae4203cf01d1d657dc0c8d4258 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 14 Jul 2021 19:18:27 +0200 Subject: Whitespace around operators --- pcp/PCPDynamicMeter.c | 8 ++++---- pcp/PCPProcessList.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pcp') diff --git a/pcp/PCPDynamicMeter.c b/pcp/PCPDynamicMeter.c index a6c2ab26..be558ab9 100644 --- a/pcp/PCPDynamicMeter.c +++ b/pcp/PCPDynamicMeter.c @@ -36,7 +36,7 @@ static PCPDynamicMetric* PCPDynamicMeter_lookupMetric(PCPDynamicMeters* meters, unsigned int n = meter->totalMetrics + 1; meter->metrics = xReallocArray(meter->metrics, n, sizeof(PCPDynamicMetric)); meter->totalMetrics = n; - metric = &meter->metrics[n-1]; + metric = &meter->metrics[n - 1]; memset(metric, 0, sizeof(PCPDynamicMetric)); metric->name = metricName; metric->label = String_cat(name, ": "); @@ -186,11 +186,11 @@ static void PCPDynamicMeter_parseFile(PCPDynamicMeters* meters, const char* path char* key = String_trim(config[0]); char* value = n > 1 ? String_trim(config[1]) : NULL; if (key[0] == '[') { /* new section heading - i.e. new meter */ - ok = PCPDynamicMeter_validateMeterName(key+1, path, lineno); + ok = PCPDynamicMeter_validateMeterName(key + 1, path, lineno); if (ok) - ok = PCPDynamicMeter_uniqueName(key+1, path, lineno, meters); + ok = PCPDynamicMeter_uniqueName(key + 1, path, lineno, meters); if (ok) - meter = PCPDynamicMeter_new(meters, key+1); + meter = PCPDynamicMeter_new(meters, key + 1); } else if (!ok) { ; /* skip this one, we're looking for a new header */ } else if (value && meter && String_eq(key, "caption")) { diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c index ac72e434..da51c31c 100644 --- a/pcp/PCPProcessList.c +++ b/pcp/PCPProcessList.c @@ -280,7 +280,7 @@ static void PCPProcessList_updateCmdline(Process* process, int pid, int offset, } else { ++command; --length; - if (command[length-1] == ')') + if (command[length - 1] == ')') command[--length] = '\0'; process->isKernelThread = true; } -- cgit v1.2.3