summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-11-10 05:00:20 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-11-10 05:00:20 +0000
commite283aaae4db167ac21cc8a5eda66f1756ff9016d (patch)
tree9b131a68ee8c2b36e2666bf7ecd70c8d041c9696
parent358decbed5c7bc10eb5ed65da5b7581a0fe3a18c (diff)
downloadFreeBSD-src-e283aaae4db167ac21cc8a5eda66f1756ff9016d.zip
FreeBSD-src-e283aaae4db167ac21cc8a5eda66f1756ff9016d.tar.gz
Since union wait was removed in revision 1.17 (3 years, 5 months ago),
type casting version of macro _W_INT is no longer needed. Discussed with: yongari
-rw-r--r--sys/sys/wait.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/sys/wait.h b/sys/sys/wait.h
index c16821c..e5691db 100644
--- a/sys/sys/wait.h
+++ b/sys/sys/wait.h
@@ -45,11 +45,9 @@
* values.
*/
#if __BSD_VISIBLE
-#define _W_INT(w) (*(int *)&(w)) /* Convert union wait to int. */
#define WCOREFLAG 0200
-#else
-#define _W_INT(i) (i)
#endif
+#define _W_INT(i) (i)
#define _WSTATUS(x) (_W_INT(x) & 0177)
#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */
OpenPOWER on IntegriCloud