summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-07-18 20:06:15 +0000
committerbz <bz@FreeBSD.org>2011-07-18 20:06:15 +0000
commit1a8cc2bad92d7f1305d57aac3ee82e82117aab70 (patch)
tree89c30228db716dd5aea7753adbe51af32a2e45bf /lib
parenta9ea37dda1816fb8e967e3825b2e7a71905e8cbc (diff)
downloadFreeBSD-src-1a8cc2bad92d7f1305d57aac3ee82e82117aab70.zip
FreeBSD-src-1a8cc2bad92d7f1305d57aac3ee82e82117aab70.tar.gz
Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.
Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib)
Diffstat (limited to 'lib')
-rw-r--r--lib/libkvm/kvm_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c
index 338d217..876af50 100644
--- a/lib/libkvm/kvm_proc.c
+++ b/lib/libkvm/kvm_proc.c
@@ -426,10 +426,10 @@ nopgrp:
kp->ki_lastcpu = mtd.td_lastcpu;
kp->ki_wchan = mtd.td_wchan;
if (mtd.td_name[0] != 0)
- strlcpy(kp->ki_ocomm, mtd.td_name, MAXCOMLEN);
+ strlcpy(kp->ki_tdname, mtd.td_name, MAXCOMLEN);
kp->ki_oncpu = mtd.td_oncpu;
if (mtd.td_name[0] != '\0')
- strlcpy(kp->ki_ocomm, mtd.td_name, sizeof(kp->ki_ocomm));
+ strlcpy(kp->ki_tdname, mtd.td_name, sizeof(kp->ki_tdname));
kp->ki_pctcpu = 0;
kp->ki_rqindex = 0;
} else {
OpenPOWER on IntegriCloud