diff options
Diffstat (limited to 'rt')
-rw-r--r-- | rt/tst-aio.c | 4 | ||||
-rw-r--r-- | rt/tst-aio64.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rt/tst-aio.c b/rt/tst-aio.c index 1b24542441..24efad3e23 100644 --- a/rt/tst-aio.c +++ b/rt/tst-aio.c @@ -76,14 +76,14 @@ test_file (const void *buf, size_t size, int fd, const char *msg) return 1; } - if (st.st_size != size) + if (st.st_size != (off_t) size) { error (0, errno, "%s: wrong size: %lu, should be %lu", msg, (unsigned long int) st.st_size, (unsigned long int) size); return 1; } - if (pread (fd, tmp, size, 0) != size) + if (pread (fd, tmp, size, 0) != (ssize_t) size) { error (0, errno, "%s: failed pread", msg); return 1; diff --git a/rt/tst-aio64.c b/rt/tst-aio64.c index 4663d75562..93e8cb2136 100644 --- a/rt/tst-aio64.c +++ b/rt/tst-aio64.c @@ -77,14 +77,14 @@ test_file (const void *buf, size_t size, int fd, const char *msg) return 1; } - if (st.st_size != size) + if (st.st_size != (off_t) size) { error (0, errno, "%s: wrong size: %lu, should be %lu", msg, (unsigned long int) st.st_size, (unsigned long int) size); return 1; } - if (pread (fd, tmp, size, 0) != size) + if (pread (fd, tmp, size, 0) != (ssize_t) size) { error (0, errno, "%s: failed pread", msg); return 1; |