Use the ki_udata field that was recently-added to kinfo_proc, instead of

stealing ki_spare[0] to hold a pointer.
This commit is contained in:
gad 2005-06-04 23:40:09 +00:00
parent c74fc16e2d
commit 1d64a7af31

View File

@ -117,7 +117,7 @@ struct entry {
struct kinfo_proc *dkp; /* debug option proc list */
} *ep, *ehead = NULL, **nextp = &ehead;
#define debugproc(p) *((struct kinfo_proc **)&(p)->ki_spare[0])
#define debugproc(p) *((struct kinfo_proc **)&(p)->ki_udata)
/* W_DISPHOSTSIZE should not be greater than UT_HOSTSIZE */
#define W_DISPHOSTSIZE 16