Date: Tue, 5 Jan 2010 21:00:24 +0000 (UTC) From: David Malone <dwmalone@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r201611 - head/usr.bin/w Message-ID: <201001052100.o05L0OQx011652@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dwmalone Date: Tue Jan 5 21:00:23 2010 New Revision: 201611 URL: http://svn.freebsd.org/changeset/base/201611 Log: Shuffle parens to avoid type-punning warning. Modified: head/usr.bin/w/w.c Modified: head/usr.bin/w/w.c ============================================================================== --- head/usr.bin/w/w.c Tue Jan 5 20:53:55 2010 (r201610) +++ head/usr.bin/w/w.c Tue Jan 5 21:00:23 2010 (r201611) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001052100.o05L0OQx011652>