diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-05 23:42:55 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-11 20:12:34 +0100 |
commit | d72b0a682ecad0a8d5793022733447e855a61798 (patch) | |
tree | d9bc511bb716030fd73675bd3474e5a043636d73 /MainPanel.c | |
parent | 1b2d48bc9aa93254c48d10bb34acde9596b526b9 (diff) |
Mark several non-modified pointer variables const
Diffstat (limited to 'MainPanel.c')
-rw-r--r-- | MainPanel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MainPanel.c b/MainPanel.c index 859c5130..842e8e15 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -32,7 +32,7 @@ void MainPanel_pidSearch(MainPanel* this, int ch) { Panel* super = (Panel*) this; pid_t pid = ch - 48 + this->pidSearch; for (int i = 0; i < Panel_size(super); i++) { - Process* p = (Process*) Panel_get(super, i); + const Process* p = (const Process*) Panel_get(super, i); if (p && p->pid == pid) { Panel_setSelected(super, i); break; @@ -134,7 +134,7 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) { } int MainPanel_selectedPid(MainPanel* this) { - Process* p = (Process*) Panel_getSelected((Panel*)this); + const Process* p = (const Process*) Panel_getSelected((Panel*)this); if (p) { return p->pid; } |