From: Ulrich Drepper Date: Fri, 11 Apr 2003 22:59:18 +0000 (+0000) Subject: (do_test): Add cast to avoid warning. X-Git-Tag: cvs/glibc-2_3_3~918 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fed7a0f214ce6a559e177689441681aa76867b4;p=thirdparty%2Fglibc.git (do_test): Add cast to avoid warning. --- diff --git a/nptl/tst-attr2.c b/nptl/tst-attr2.c index b5c1a5f961f..a60598dd7e3 100644 --- a/nptl/tst-attr2.c +++ b/nptl/tst-attr2.c @@ -91,7 +91,7 @@ default detach state wrong: %d, expected %d (PTHREAD_CREATE_JOINABLE)\n", puts ("1st attr_getguardsize failed"); exit (1); } - if (g != sysconf (_SC_PAGESIZE)) + if (g != (size_t) sysconf (_SC_PAGESIZE)) { printf ("default guardsize %zu, expected %ld (PAGESIZE)\n", g, sysconf (_SC_PAGESIZE)); diff --git a/nptl/tst-mutex4.c b/nptl/tst-mutex4.c index 89995b15b71..9caed444c14 100644 --- a/nptl/tst-mutex4.c +++ b/nptl/tst-mutex4.c @@ -64,7 +64,7 @@ do_test (void) memset (data, '\0', ps); /* Write the data to the file. */ - if (write (fd, data, ps) != ps) + if (write (fd, data, ps) != (ssize_t) ps) { puts ("short write"); return 1;