From c74ff569ca40c7484c197d23ec342f8445c09b9c Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Wed, 9 Jul 2014 01:22:54 +0530 Subject: compress: Change variable name 'writen' and 'total_writen' variables has been defined in compress xlator. This patch replaced those with proper name. Change-Id: If8e38fae8f997a92686a891d64cbaf6b0b69129a BUG: 1075417 Signed-off-by: Humble Chirammal Reviewed-on: http://review.gluster.org/8268 Tested-by: Gluster Build System Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- xlators/features/compress/src/cdc-helper.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'xlators/features/compress') diff --git a/xlators/features/compress/src/cdc-helper.c b/xlators/features/compress/src/cdc-helper.c index 54432ff455c..79d60a4924b 100644 --- a/xlators/features/compress/src/cdc-helper.c +++ b/xlators/features/compress/src/cdc-helper.c @@ -161,8 +161,8 @@ cdc_dump_iovec_to_disk (xlator_t *this, cdc_info_t *ci, const char *file) { int i = 0; int fd = 0; - size_t writen = 0; - size_t total_writen = 0; + size_t written = 0; + size_t total_written = 0; fd = open (file, O_WRONLY|O_CREAT|O_TRUNC, 0777 ); if (fd < 0) { @@ -171,15 +171,15 @@ cdc_dump_iovec_to_disk (xlator_t *this, cdc_info_t *ci, const char *file) return; } - writen = write (fd, (char *) gzip_header, 10); - total_writen += writen; + written = write (fd, (char *) gzip_header, 10); + total_written += written; for (i = 0; i < ci->ncount; i++) { - writen = write (fd, (char *) ci->vec[i].iov_base, ci->vec[i].iov_len); - total_writen += writen; + written = write (fd, (char *) ci->vec[i].iov_base, ci->vec[i].iov_len); + total_written += written; } gf_log (this->name, GF_LOG_DEBUG, - "dump'd %zu bytes to %s", total_writen, GF_CDC_DEBUG_DUMP_FILE ); + "dump'd %zu bytes to %s", total_written, GF_CDC_DEBUG_DUMP_FILE ); close (fd); } @@ -502,7 +502,7 @@ cdc_decompress (xlator_t *this, cdc_priv_t *priv, cdc_info_t *ci, goto passthrough_out; /* do we need to do this? can we assume that one iovec - * will hold per request data everytime? + * will hold per request data every time? * * server/client protocol seems to deal with a single * iovec even if op_ret > 1M. So, it looks ok to -- cgit