git » libjio » commit 70ee220

Fix "committed" typos

author Alberto Bertogli
2009-03-29 03:53:57 UTC
committer Alberto Bertogli
2009-03-29 03:53:57 UTC
parent 2383e7c5193ac91f2bbc6c2abcdcaa43cf7b9d94

Fix "committed" typos

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

bindings/python2/libjio.c +1 -1
bindings/python3/libjio.c +1 -1
libjio/trans.c +2 -3

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 */