From b9934ffa08dc2332bea03cae0536101b7b35562e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 4 Sep 2017 13:53:03 -0300 Subject: minor style tweak --- ProcessList.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ProcessList.c b/ProcessList.c index 19311cab..aea57e7e 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -234,12 +234,13 @@ void ProcessList_sort(ProcessList* this) { while (l < r) { int c = (l + r) / 2; pid_t pid = ((Process*)(Vector_get(this->processes, c)))->pid; - if (ppid == pid) + if (ppid == pid) { break; - else if (ppid < pid) + } else if (ppid < pid) { r = c; - else + } else { l = c + 1; + } } // If parent not found, then construct the tree with this root if (l >= r) { -- cgit v1.2.3