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:
parent
c74fc16e2d
commit
1d64a7af31
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user