summaryrefslogtreecommitdiffstats
path: root/winsup/testsuite/winsup.api/ltp/mmap08.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/mmap08.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/mmap08.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/mmap08.c b/winsup/testsuite/winsup.api/ltp/mmap08.c
index 8af8cb51b..543c5397b 100644
--- a/winsup/testsuite/winsup.api/ltp/mmap08.c
+++ b/winsup/testsuite/winsup.api/ltp/mmap08.c
@@ -191,7 +191,8 @@ setup()
}
/* Write test buffer contents into temporary file */
- if (write(fildes, tst_buff, strlen(tst_buff)) != strlen(tst_buff)) {
+ if (write(fildes, tst_buff, strlen(tst_buff))
+ != (int)strlen(tst_buff)) {
tst_brkm(TFAIL, NULL, "write() on %s Failed, errno=%d : %s",
TEMPFILE, errno, strerror(errno));
free(tst_buff);