diff options
-rw-r--r-- | usr.bin/top/machine.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index b68e910eae5..4ffe48b2db1 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.102 2020/01/06 20:05:10 zhuk Exp $ */ +/* $OpenBSD: machine.c,v 1.103 2020/06/23 19:12:47 kn Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com> @@ -491,10 +491,7 @@ get_process_info(struct system_info *si, struct process_select *sel, } } - /* if requested, sort the "interesting" processes */ - if (compare != NULL) - qsort((char *) pref, active_procs, - sizeof(struct kinfo_proc *), compare); + qsort((char *)pref, active_procs, sizeof(struct kinfo_proc *), compare); /* remember active and total counts */ si->p_total = total_procs; si->p_active = pref_len = active_procs; |