MFC r205148:

Make it compile on LP64 arches.
This commit is contained in:
Konstantin Belousov 2010-03-17 09:52:26 +00:00
parent 6b5b49ce7f
commit 84d7d98fa1

View File

@ -1239,7 +1239,8 @@ exhaust_unnamed_sems(void)
return; return;
} }
if (child_worker(exhaust_unnamed_child, (void *)nsems_max, &stat)) if (child_worker(exhaust_unnamed_child, (void *)(uintptr_t)nsems_max,
&stat))
return; return;
errno = CSTAT_ERROR(stat); errno = CSTAT_ERROR(stat);
switch (CSTAT_CLASS(stat)) { switch (CSTAT_CLASS(stat)) {
@ -1293,7 +1294,8 @@ exhaust_named_sems(void)
return; 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; return;
errno = CSTAT_ERROR(stat); errno = CSTAT_ERROR(stat);
switch (CSTAT_CLASS(stat)) { switch (CSTAT_CLASS(stat)) {
@ -1351,7 +1353,8 @@ fdlimit_unnamed_sems(void)
int nsems_max, stat; int nsems_max, stat;
nsems_max = 10; 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; return;
errno = CSTAT_ERROR(stat); errno = CSTAT_ERROR(stat);
switch (CSTAT_CLASS(stat)) { switch (CSTAT_CLASS(stat)) {
@ -1395,7 +1398,8 @@ fdlimit_named_sems(void)
int i, nsems_max, stat; int i, nsems_max, stat;
nsems_max = 10; 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; return;
errno = CSTAT_ERROR(stat); errno = CSTAT_ERROR(stat);
switch (CSTAT_CLASS(stat)) { switch (CSTAT_CLASS(stat)) {