Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/lseek07.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/lseek07.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/lseek07.c b/winsup/testsuite/winsup.api/ltp/lseek07.c
index 47bdf1d6b..c5a27b5b3 100644
--- a/winsup/testsuite/winsup.api/ltp/lseek07.c
+++ b/winsup/testsuite/winsup.api/ltp/lseek07.c
@@ -149,7 +149,7 @@ main(int ac, char **av)
* the current offset position.
*/
if (write(fildes, write_buf2, strlen(write_buf2)) !=
- strlen(write_buf2)) {
+ (int)strlen(write_buf2)) {
tst_brkm(TFAIL, cleanup, "write() failed to "
"write additional data, error = %d",
errno);
@@ -244,7 +244,7 @@ setup()
/* Write data into temporary file */
if(write(fildes, write_buf1, strlen(write_buf1)) !=
- strlen(write_buf1)) {
+ (int)strlen(write_buf1)) {
tst_brkm(TBROK, cleanup, "write(2) on %s Failed, errno=%d : %s",
TEMP_FILE, errno, strerror(errno));
}