From 70ee2209c331e69bda9a6a7d02a138aac56d0797 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun, 29 Mar 2009 00:53:57 -0300
Subject: [PATCH 30/32] Fix "committed" typos

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 bindings/python2/libjio.c |    2 +-
 bindings/python3/libjio.c |    2 +-
 libjio/trans.c            |    5 ++---
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/bindings/python2/libjio.c b/bindings/python2/libjio.c
index 1edfc47..a29f8f1 100644
--- a/bindings/python2/libjio.c
+++ b/bindings/python2/libjio.c
@@ -24,7 +24,7 @@
  * UNIX file.
  *
  * The second one represents a single transaction, which is composed of
- * several operations that get added by its add() method. It gets commited
+ * several operations that get added by its add() method. It gets committed
  * with commit(), and rolled back with rollback().
  *
  * There rest of the module's functions are related to file checking, called
diff --git a/bindings/python3/libjio.c b/bindings/python3/libjio.c
index 0b119a6..7d63691 100644
--- a/bindings/python3/libjio.c
+++ b/bindings/python3/libjio.c
@@ -24,7 +24,7 @@
  * UNIX file.
  *
  * The second one represents a single transaction, which is composed of
- * several operations that get added by its add() method. It gets commited
+ * several operations that get added by its add() method. It gets committed
  * with commit(), and rolled back with rollback().
  *
  * There rest of the module's functions are related to file checking, called
diff --git a/libjio/trans.c b/libjio/trans.c
index 8f003d4..dc38814 100644
--- a/libjio/trans.c
+++ b/libjio/trans.c
@@ -426,7 +426,7 @@ ssize_t jtrans_commit(struct jtrans *ts)
 		free_tid(ts->fs, ts->id);
 	}
 
-	/* mark the transaction as commited, _after_ it was removed */
+	/* mark the transaction as committed, _after_ it was removed */
 	ts->flags = ts->flags | J_COMMITTED;
 
 
@@ -475,12 +475,11 @@ unlink_exit:
 exit:
 	pthread_mutex_unlock(&(ts->lock));
 
-	/* return the length only if it was properly commited */
+	/* return the length only if it was properly committed */
 	if (ts->flags & J_COMMITTED)
 		return written;
 	else
 		return -1;
-
 }
 
 /* rollback a transaction */
-- 
1.6.2.rc0.226.gf08f


