summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2007-04-05 19:53:23 +0000
committerHisham Muhammad <hisham@gobolinux.org>2007-04-05 19:53:23 +0000
commita227b20fefda7d14316523ddd3aa1ce2b439169c (patch)
tree08ddd2b5636ded3fee6ac175c16014986e5d0969 /htop.c
parente3198ca63b0996f4a2e46ab5bbb98650de47ea3e (diff)
Switch to unsigned keys in hash, according to issue #1688290
in the sf tracker
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/htop.c b/htop.c
index 3fb72c98..96e01060 100644
--- a/htop.c
+++ b/htop.c
@@ -312,7 +312,7 @@ int main(int argc, char** argv) {
incSearchIndex = 0;
incSearchBuffer[0] = 0;
int currPos = Panel_getSelectedIndex(panel);
- int currPid = 0;
+ unsigned int currPid = 0;
int currScrollV = panel->scrollV;
if (follow)
currPid = ProcessList_get(pl, currPos)->pid;
@@ -406,7 +406,7 @@ int main(int argc, char** argv) {
continue;
}
if (isdigit((char)ch)) {
- int pid = ch-48 + acc;
+ unsigned int pid = ch-48 + acc;
for (int i = 0; i < ProcessList_size(pl) && ((Process*) Panel_getSelected(panel))->pid != pid; i++)
Panel_setSelected(panel, i);
acc = pid * 10;

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