diff options
author | gad <gad@FreeBSD.org> | 2005-06-04 23:40:09 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2005-06-04 23:40:09 +0000 |
commit | 1d64a7af3103ca314acdafef71a0354b4aec086e (patch) | |
tree | 6c6cc22c0387abc2c021d0c311793a8ef3150b6c /usr.bin/w | |
parent | c74fc16e2d53283bd07cca184cb14f3756e96cd6 (diff) | |
download | FreeBSD-src-1d64a7af3103ca314acdafef71a0354b4aec086e.zip FreeBSD-src-1d64a7af3103ca314acdafef71a0354b4aec086e.tar.gz |
Use the ki_udata field that was recently-added to kinfo_proc, instead of
stealing ki_spare[0] to hold a pointer.
Diffstat (limited to 'usr.bin/w')
-rw-r--r-- | usr.bin/w/w.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index ebf2a87..72559ba 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -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 |