diff options
author | kib <kib@FreeBSD.org> | 2010-03-14 13:04:09 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-03-14 13:04:09 +0000 |
commit | e919ba6d14b8992a15dc8e7b84c4c10896d5cc3f (patch) | |
tree | 52806e88ddf1dd27c6bfddd2e2773a7a7ebec458 /tools | |
parent | 6e7859d3d9b73aebf2e08af7f5280940c04c696d (diff) | |
download | FreeBSD-src-e919ba6d14b8992a15dc8e7b84c4c10896d5cc3f.zip FreeBSD-src-e919ba6d14b8992a15dc8e7b84c4c10896d5cc3f.tar.gz |
Make it compile on LP64 arches.
MFC after: 3 days
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/posixsem/posixsem.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/regression/posixsem/posixsem.c b/tools/regression/posixsem/posixsem.c index 465d6e7..6401b5c 100644 --- a/tools/regression/posixsem/posixsem.c +++ b/tools/regression/posixsem/posixsem.c @@ -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)) { |