Date: Wed, 17 Mar 2010 09:52:26 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r205249 - stable/8/tools/regression/posixsem Message-ID: <201003170952.o2H9qQVS066026@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Mar 17 09:52:26 2010 New Revision: 205249 URL: http://svn.freebsd.org/changeset/base/205249 Log: MFC r205148: Make it compile on LP64 arches. Modified: stable/8/tools/regression/posixsem/posixsem.c Directory Properties: stable/8/tools/regression/posixsem/ (props changed) Modified: stable/8/tools/regression/posixsem/posixsem.c ============================================================================== --- stable/8/tools/regression/posixsem/posixsem.c Wed Mar 17 08:56:13 2010 (r205248) +++ stable/8/tools/regression/posixsem/posixsem.c Wed Mar 17 09:52:26 2010 (r205249) @@ -1239,7 +1239,8 @@ exhaust_unnamed_sems(void) return; } - if (child_worker(exhaust_unnamed_child, (void *)nsems_max, &stat)) + if (child_worker(exhaust_unnamed_child, (void *)(uintptr_t)nsems_max, + &stat)) return; errno = CSTAT_ERROR(stat); switch (CSTAT_CLASS(stat)) { @@ -1293,7 +1294,8 @@ exhaust_named_sems(void) return; } - if (child_worker(exhaust_named_child, (void *)nsems_max, &stat) < 0) + if (child_worker(exhaust_named_child, (void *)(uintptr_t)nsems_max, + &stat) < 0) return; errno = CSTAT_ERROR(stat); switch (CSTAT_CLASS(stat)) { @@ -1351,7 +1353,8 @@ fdlimit_unnamed_sems(void) int nsems_max, stat; nsems_max = 10; - if (child_worker(fdlimit_unnamed_child, (void *)nsems_max, &stat)) + if (child_worker(fdlimit_unnamed_child, (void *)(uintptr_t)nsems_max, + &stat)) return; errno = CSTAT_ERROR(stat); switch (CSTAT_CLASS(stat)) { @@ -1395,7 +1398,8 @@ fdlimit_named_sems(void) int i, nsems_max, stat; nsems_max = 10; - if (child_worker(fdlimit_named_child, (void *)nsems_max, &stat) < 0) + if (child_worker(fdlimit_named_child, (void *)(uintptr_t)nsems_max, + &stat) < 0) return; errno = CSTAT_ERROR(stat); switch (CSTAT_CLASS(stat)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003170952.o2H9qQVS066026>