diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-04-18 15:50:06 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-04-21 20:58:28 +0200 |
commit | 5dbca0193ded83136b14615e55caffbc240cd7ce (patch) | |
tree | 0c252957f4ef3e579e9a208b2bb0de027a8543b6 | |
parent | a05e78f5318325e7d2f01bf4b8a0f11b8cf71371 (diff) |
Make MainPanel_pidSearch a static function
Not used elsewhere.
-rw-r--r-- | MainPanel.c | 2 | ||||
-rw-r--r-- | MainPanel.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/MainPanel.c b/MainPanel.c index cf7392e4..5a75af3a 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -29,7 +29,7 @@ void MainPanel_updateTreeFunctions(MainPanel* this, bool mode) { FunctionBar_setLabel(bar, KEY_F(5), mode ? "List " : "Tree "); } -void MainPanel_pidSearch(MainPanel* this, int ch) { +static 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++) { diff --git a/MainPanel.h b/MainPanel.h index 2427ca32..04f347d6 100644 --- a/MainPanel.h +++ b/MainPanel.h @@ -34,8 +34,6 @@ typedef bool(*MainPanel_ForeachProcessFn)(Process*, Arg); void MainPanel_updateTreeFunctions(MainPanel* this, bool mode); -void MainPanel_pidSearch(MainPanel* this, int ch); - int MainPanel_selectedPid(MainPanel* this); bool MainPanel_foreachProcess(MainPanel* this, MainPanel_ForeachProcessFn fn, Arg arg, bool* wasAnyTagged); |