Patchwork [PATCHv1,3/5] tests: fs-tests: read() returns ssize_t value

login
register
mail settings
Submitter Shevchenko Andriy (EXT-Teleca/Helsinki)
Date April 13, 2011, 1:20 p.m.
Message ID <8aa731c3a7a071bb9216500d72c9a8d7a7e2b830.1302700658.git.ext-andriy.shevchenko@nokia.com>
Download mbox | patch
Permalink /patch/91004/
State New
Headers show

Comments

Shevchenko Andriy (EXT-Teleca/Helsinki) - April 13, 2011, 1:20 p.m.
Use ssize_t instead of size_t.

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
---
 tests/fs-tests/stress/atoms/rndwrite00.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Artem Bityutskiy - April 14, 2011, 12:26 p.m.
On Wed, 2011-04-13 at 16:20 +0300, Andy Shevchenko wrote:
> Use ssize_t instead of size_t.
> 
> Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>

Pushed this one, thanks!

Patch

diff --git a/tests/fs-tests/stress/atoms/rndwrite00.c b/tests/fs-tests/stress/atoms/rndwrite00.c
index 655d9cc..3c38e43 100644
--- a/tests/fs-tests/stress/atoms/rndwrite00.c
+++ b/tests/fs-tests/stress/atoms/rndwrite00.c
@@ -36,7 +36,7 @@ 
 
 static void check_file(int fd, char *data, size_t length)
 {
-	size_t n, i;
+	ssize_t n, i;
 	char buf[BUFFER_SIZE];
 
 	CHECK(lseek(fd, 0, SEEK_SET) != -1);