git » libjio » commit 0d244b3

Make struct jtrans' len unsigned

author Alberto Bertogli
2009-04-07 03:03:27 UTC
committer Alberto Bertogli
2009-04-12 13:51:04 UTC
parent f7159675d2a03cc6b75d00ecdf0d6357e473a1ba

Make struct jtrans' len unsigned

It makes no sense for it to be signed, as we never store negative numbers
in it.

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

libjio/libjio.h +1 -1

diff --git a/libjio/libjio.h b/libjio/libjio.h
index f73faf7..aeea19e 100644
--- a/libjio/libjio.h
+++ b/libjio/libjio.h
@@ -47,7 +47,7 @@ struct jtrans {
 	int id;			/* transaction id */
 	uint32_t flags;		/* transaction flags */
 	unsigned int numops;	/* quantity of operations in the list */
-	ssize_t len;		/* transaction's length */
+	size_t len;		/* transaction's length */
 	pthread_mutex_t lock;	/* used to modify the operation list */
 	struct joper *op;	/* list of operations */
 };