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:
Garance A Drosehn 2005-06-04 23:40:09 +00:00
parent fce21e7e25
commit b8eb1eccee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146983

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