summaryrefslogtreecommitdiffstats
path: root/winsup/testsuite/winsup.api/ltp/mmap05.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/mmap05.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/mmap05.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/mmap05.c b/winsup/testsuite/winsup.api/ltp/mmap05.c
index 3a7783df8..bcdfd0cd8 100644
--- a/winsup/testsuite/winsup.api/ltp/mmap05.c
+++ b/winsup/testsuite/winsup.api/ltp/mmap05.c
@@ -228,7 +228,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);