diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2010-01-05 21:00:23 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2010-01-05 21:00:23 +0000 |
commit | a3da51fe8dfd538fafb93b283d87891b9a73354c (patch) | |
tree | 26a072e9456cc6cc4e04cb1aca631428bd817ab2 | |
parent | ca1f8c06cee91352273fe0335f0ea576905d3238 (diff) | |
download | FreeBSD-src-a3da51fe8dfd538fafb93b283d87891b9a73354c.zip FreeBSD-src-a3da51fe8dfd538fafb93b283d87891b9a73354c.tar.gz |
Shuffle parens to avoid type-punning warning.
-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 d35892e..0e4397d 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -118,7 +118,7 @@ struct entry { struct kinfo_proc *dkp; /* debug option proc list */ } *ep, *ehead = NULL, **nextp = &ehead; -#define debugproc(p) *((struct kinfo_proc **)&(p)->ki_udata) +#define debugproc(p) *(&((struct kinfo_proc *)p)->ki_udata) #define W_DISPUSERSIZE 10 #define W_DISPLINESIZE 8 |