summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-09-09 19:40:50 +1000
committerNathan Scott <nathans@redhat.com>2020-09-09 19:40:50 +1000
commit35c3a95ff949b0fda07aefde5df4f5122d70c9f0 (patch)
treebcad6996f30d81ad960cb5aeb00340b68eafabee /AffinityPanel.c
parent06ba81beec1d1c9449c6410e6a1aaf24f5da70e4 (diff)
parent13b1e96b123c89da5bada7b8d173f9e5e931b9db (diff)
Merge branch 'avoid-shadowing' of https://github.com/BenBE/htop into BenBE-avoid-shadowing
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 d69ce003..d0a9e6dc 100644
--- a/AffinityPanel.c
+++ b/AffinityPanel.c
@@ -368,9 +368,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