diff options
author | Nathan Scott <nathans@redhat.com> | 2020-09-09 19:40:50 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-09-09 19:40:50 +1000 |
commit | 35c3a95ff949b0fda07aefde5df4f5122d70c9f0 (patch) | |
tree | bcad6996f30d81ad960cb5aeb00340b68eafabee /AffinityPanel.c | |
parent | 06ba81beec1d1c9449c6410e6a1aaf24f5da70e4 (diff) | |
parent | 13b1e96b123c89da5bada7b8d173f9e5e931b9db (diff) |
Merge branch 'avoid-shadowing' of https://github.com/BenBE/htop into BenBE-avoid-shadowing
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r-- | AffinityPanel.c | 6 |
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) { |