svn commit: r201611 - head/usr.bin/w

David Malone dwmalone at FreeBSD.org
Tue Jan 5 21:00:24 UTC 2010


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


More information about the svn-src-head mailing list