summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index 63393b3..75f19ad 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -827,13 +827,10 @@ void
pstats_fork(struct pstats *src, struct pstats *dst)
{
-#define RANGEOF(type, start, end) (offsetof(type, end) - offsetof(type, start))
-
bzero(&dst->pstat_startzero,
- (unsigned)RANGEOF(struct pstats, pstat_startzero, pstat_endzero));
+ __rangeof(struct pstats, pstat_startzero, pstat_endzero));
bcopy(&src->pstat_startcopy, &dst->pstat_startcopy,
- (unsigned)RANGEOF(struct pstats, pstat_startcopy, pstat_endcopy));
-#undef RANGEOF
+ __rangeof(struct pstats, pstat_startcopy, pstat_endcopy));
}
void
OpenPOWER on IntegriCloud