diff options
Diffstat (limited to 'xlators/features/changelog/src')
-rw-r--r-- | xlators/features/changelog/src/changelog-helpers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c index bb8150bd719..ba3367b339a 100644 --- a/xlators/features/changelog/src/changelog-helpers.c +++ b/xlators/features/changelog/src/changelog-helpers.c @@ -141,18 +141,18 @@ inline int 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 != len); + return (written != len); } int |