mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
(do_test): Add cast to avoid warning.
This commit is contained in:
parent
9fb0cae85c
commit
6fed7a0f21
@ -91,7 +91,7 @@ default detach state wrong: %d, expected %d (PTHREAD_CREATE_JOINABLE)\n",
|
|||||||
puts ("1st attr_getguardsize failed");
|
puts ("1st attr_getguardsize failed");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
if (g != sysconf (_SC_PAGESIZE))
|
if (g != (size_t) sysconf (_SC_PAGESIZE))
|
||||||
{
|
{
|
||||||
printf ("default guardsize %zu, expected %ld (PAGESIZE)\n",
|
printf ("default guardsize %zu, expected %ld (PAGESIZE)\n",
|
||||||
g, sysconf (_SC_PAGESIZE));
|
g, sysconf (_SC_PAGESIZE));
|
||||||
|
@ -64,7 +64,7 @@ do_test (void)
|
|||||||
memset (data, '\0', ps);
|
memset (data, '\0', ps);
|
||||||
|
|
||||||
/* Write the data to the file. */
|
/* Write the data to the file. */
|
||||||
if (write (fd, data, ps) != ps)
|
if (write (fd, data, ps) != (ssize_t) ps)
|
||||||
{
|
{
|
||||||
puts ("short write");
|
puts ("short write");
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user