top(1): Prefer memcpy over bcopy
This commit is contained in:
parent
9645bcabdf
commit
5dc98aeeaa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334599
@ -790,7 +790,7 @@ get_process_info(struct system_info *si, struct process_select *sel,
|
||||
if (nproc) {
|
||||
for (i = 0; i < nproc; i++)
|
||||
previous_pref[i] = &previous_procs[i];
|
||||
bcopy(pbase, previous_procs, nproc * sizeof(*previous_procs));
|
||||
memcpy(previous_procs, pbase, nproc * sizeof(*previous_procs));
|
||||
qsort(previous_pref, nproc, sizeof(*previous_pref),
|
||||
ps.thread ? compare_tid : compare_pid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user