diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-07-14 19:18:27 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-07-15 06:57:24 +0200 |
commit | 0d85af28727255ae4203cf01d1d657dc0c8d4258 (patch) | |
tree | 0c8cf78acb173b4a9df83b431820152ffa31aec0 /pcp | |
parent | 458749df45a24abec1f9a820e4172a08ccfba3b1 (diff) |
Whitespace around operators
Diffstat (limited to 'pcp')
-rw-r--r-- | pcp/PCPDynamicMeter.c | 8 | ||||
-rw-r--r-- | pcp/PCPProcessList.c | 2 |
2 files changed, 5 insertions, 5 deletions
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; } |