Date: Mon, 4 Jun 2018 04:59:25 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334599 - head/usr.bin/top Message-ID: <201806040459.w544xPVa059994@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Mon Jun 4 04:59:24 2018 New Revision: 334599 URL: https://svnweb.freebsd.org/changeset/base/334599 Log: top(1): Prefer memcpy over bcopy Modified: head/usr.bin/top/machine.c Modified: head/usr.bin/top/machine.c ============================================================================== --- head/usr.bin/top/machine.c Mon Jun 4 04:49:06 2018 (r334598) +++ head/usr.bin/top/machine.c Mon Jun 4 04:59:24 2018 (r334599) @@ -790,7 +790,7 @@ get_process_info(struct system_info *si, struct proces 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806040459.w544xPVa059994>