summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-09-07 09:42:48 +0200
committerBenny Baumann <BenBE@geshi.org>2020-09-07 17:36:01 +0200
commit13b1e96b123c89da5bada7b8d173f9e5e931b9db (patch)
tree95039b548daa3f4b479d0c317b4e73de941cfd0c /AffinityPanel.c
parent85ff6960ed5c1312f9d773e695418fdbfffd5303 (diff)
Avoid shadowing of variables
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r--AffinityPanel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c
index 1ffa9008..99c24773 100644
--- a/AffinityPanel.c
+++ b/AffinityPanel.c
@@ -375,9 +375,9 @@ Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity, int* width) {
for (int i = 0; i < pl->cpuCount; i++) {
char number[16];
xSnprintf(number, 9, "CPU %d", Settings_cpuId(pl->settings, i));
- unsigned width = 4 + strlen(number);
- if (width > this->width)
- this->width = width;
+ unsigned cpu_width = 4 + strlen(number);
+ if (cpu_width > this->width)
+ this->width = cpu_width;
bool isSet = false;
if (curCpu < affinity->used && affinity->cpus[curCpu] == i) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy