diff options
author | dt <dt@FreeBSD.org> | 1999-04-24 11:25:01 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-04-24 11:25:01 +0000 |
commit | f84bfd986263e1e00d9e1a11961589bcdd9a65d3 (patch) | |
tree | a2a85d69c7eaa015f12f56514e7383e3bfff8a78 /sys/kern/kern_fork.c | |
parent | 98cf21bf1ed5540b20d9aaf75bd887a9aa8f1d8b (diff) | |
download | FreeBSD-src-f84bfd986263e1e00d9e1a11961589bcdd9a65d3.zip FreeBSD-src-f84bfd986263e1e00d9e1a11961589bcdd9a65d3.tar.gz |
Use pointer arithmetic to do pointer arithmetic.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index fc5a800..801b90c 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94 - * $Id: kern_fork.c,v 1.57 1999/04/06 03:03:34 peter Exp $ + * $Id: kern_fork.c,v 1.58 1999/04/17 08:36:04 peter Exp $ */ #include "opt_ktrace.h" @@ -355,8 +355,8 @@ again: MALLOC (p2->p_procsig, struct procsig *, sizeof(struct procsig), M_SUBPROC, M_WAITOK); bcopy(&p1->p_procsig->ps_begincopy, &p2->p_procsig->ps_begincopy, - (unsigned)&p1->p_procsig->ps_endcopy - - (unsigned)&p1->p_procsig->ps_begincopy); + (char *)&p1->p_procsig->ps_endcopy - + (char *)&p1->p_procsig->ps_begincopy); p2->p_procsig->ps_refcnt = 1; /* Note that we fill in the values of sigacts in vm_fork */ p2->p_sigacts = NULL; |