From 1515c26fd44ee2f84ce43ebcd9168130801dd9a0 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Fri, 31 May 2013 07:19:47 -0500 Subject: [PATCH] xfstests 285: Fix indentation of do_pwrite Signed-off-by: Jan Kara Reviewed-by: Eric Sandeen Signed-off-by: Rich Johnston --- src/seek_sanity_test.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/seek_sanity_test.c b/src/seek_sanity_test.c index eec69036..748eec22 100644 --- a/src/seek_sanity_test.c +++ b/src/seek_sanity_test.c @@ -120,19 +120,19 @@ static int do_sync_dirty_pages(int fd, off64_t offset, off64_t nbytes) static ssize_t do_pwrite(int fd, const void *buf, size_t count, off_t offset) { - ssize_t ret, written = 0; - - while (count > written) { - ret = pwrite(fd, buf + written, count - written, offset + written); - if (ret < 0) { - fprintf(stderr, " ERROR %d: Failed to write %ld " - "bytes\n", errno, (long)count); - return ret; - } - written += ret; - } - - return 0; + ssize_t ret, written = 0; + + while (count > written) { + ret = pwrite(fd, buf + written, count - written, offset + written); + if (ret < 0) { + fprintf(stderr, " ERROR %d: Failed to write %ld " + "bytes\n", errno, (long)count); + return ret; + } + written += ret; + } + + return 0; } #define do_close(x) do { if ((x) > -1) close(x); } while(0); -- 2.39.5