From 25ceba47ffefa8cf9639c4f7ef907d0f2974f7d3 Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Wed, 9 Jul 2014 01:14:58 +0530 Subject: changelog: variable 'writen' is changed This patch change the variable name to 'written' in changelog, along with few other typo fixing. Change-Id: I1d3cbea5c89fc0a15233bb6e61b4fbd4bfdd3a67 BUG: 1075417 Signed-off-by: Humble Chirammal Reviewed-on: http://review.gluster.org/8267 Tested-by: Gluster Build System Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- xlators/features/changelog/lib/src/gf-changelog-helpers.c | 10 +++++----- xlators/features/changelog/lib/src/gf-changelog-helpers.h | 2 +- xlators/features/changelog/lib/src/gf-changelog.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'xlators/features/changelog/lib') diff --git a/xlators/features/changelog/lib/src/gf-changelog-helpers.c b/xlators/features/changelog/lib/src/gf-changelog-helpers.c index 1eef8bf0479..f071b057d59 100644 --- a/xlators/features/changelog/lib/src/gf-changelog-helpers.c +++ b/xlators/features/changelog/lib/src/gf-changelog-helpers.c @@ -20,18 +20,18 @@ size_t gf_changelog_write (int fd, char *buffer, size_t len) { ssize_t size = 0; - size_t writen = 0; + size_t written = 0; - while (writen < len) { + while (written < len) { size = write (fd, - buffer + writen, len - writen); + buffer + written, len - written); if (size <= 0) break; - writen += size; + written += size; } - return writen; + return written; } void diff --git a/xlators/features/changelog/lib/src/gf-changelog-helpers.h b/xlators/features/changelog/lib/src/gf-changelog-helpers.h index 218896b86e7..9b875d45dcc 100644 --- a/xlators/features/changelog/lib/src/gf-changelog-helpers.h +++ b/xlators/features/changelog/lib/src/gf-changelog-helpers.h @@ -57,7 +57,7 @@ typedef struct gf_changelog { char gfc_brickpath[PATH_MAX]; - /* socket for recieving notifications */ + /* socket for receiving notifications */ int gfc_sockfd; char *gfc_working_dir; diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c index 0240aeb0086..482a59aa805 100644 --- a/xlators/features/changelog/lib/src/gf-changelog.c +++ b/xlators/features/changelog/lib/src/gf-changelog.c @@ -272,7 +272,7 @@ gf_changelog_done (char *file) /** * @API - * for a set of changelogs, start from the begining + * for a set of changelogs, start from the beginning */ int gf_changelog_start_fresh () -- cgit