From cea597c4f3d55544c1175c1eec48d04432abf09c Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Tue, 22 Feb 2011 23:56:29 +0000
Subject: [PATCH 06/24] Fix lenght -> length typo

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 bindings/python/libjio.c |    8 ++++----
 libjio/libjio.h          |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bindings/python/libjio.c b/bindings/python/libjio.c
index e0c8c68..f147d65 100644
--- a/bindings/python/libjio.c
+++ b/bindings/python/libjio.c
@@ -378,7 +378,7 @@ static PyObject *jf_writev(jfile_object *fp, PyObject *args)
 
 /* truncate */
 PyDoc_STRVAR(jf_truncate__doc,
-"truncate(lenght)\n\
+"truncate(length)\n\
 \n\
 Truncate the file to the given size.\n\
 It's a wrapper to jtruncate().\n");
@@ -386,13 +386,13 @@ It's a wrapper to jtruncate().\n");
 static PyObject *jf_truncate(jfile_object *fp, PyObject *args)
 {
 	int rv;
-	long long lenght;
+	long long length;
 
-	if (!PyArg_ParseTuple(args, "L:truncate", &lenght))
+	if (!PyArg_ParseTuple(args, "L:truncate", &length))
 		return NULL;
 
 	Py_BEGIN_ALLOW_THREADS
-	rv = jtruncate(fp->fs, lenght);
+	rv = jtruncate(fp->fs, length);
 	Py_END_ALLOW_THREADS
 
 	if (rv != 0)
diff --git a/libjio/libjio.h b/libjio/libjio.h
index 446b81a..20ddba6 100644
--- a/libjio/libjio.h
+++ b/libjio/libjio.h
@@ -384,7 +384,7 @@ ssize_t jwritev(jfs_t *fs, const struct iovec *vector, int count);
 /** Truncates the file to the given length. Works just like UNIX ftruncate(2).
  *
  * @param fs file to truncate
- * @param length lenght to truncate to
+ * @param length length to truncate to
  * @returns 0 on success, -1 on error
  * @see ftruncate(2)
  * @ingroup unix
-- 
1.6.2.2.646.gb214

