git » libjio » commit 6f2cd04

Make flags 32 bits and unsigned, as they should be.

author Alberto Bertogli
2004-08-29 00:22:57 UTC
committer Alberto Bertogli
2007-07-15 13:17:16 UTC
parent b3c5922a481364f92a619f9d9a5e5c61f2b48e62

Make flags 32 bits and unsigned, as they should be.

Make flags 32 bits and unsigned, as they should be.

libjio.h +2 -2

diff --git a/libjio.h b/libjio.h
index 9e5da7e..ace331d 100644
--- a/libjio.h
+++ b/libjio.h
@@ -27,7 +27,7 @@ struct jfs {
 	int jdirfd;		/* journal directory file descriptor */
 	int jfd;		/* journal's lock file descriptor */
 	unsigned int *jmap;	/* journal's lock file mmap area */
-	int flags;		/* journal flags */
+	uint32_t flags;		/* journal flags */
 	struct jlinger *ltrans;	/* lingered transactions */
 	pthread_mutex_t lock;	/* a soft lock used in some operations */
 };
@@ -49,7 +49,7 @@ struct jtrans {
 	struct jfs *fs;		/* journal file structure to operate on */
 	char *name;		/* name of the transaction file */
 	int id;			/* transaction id */
-	int flags;		/* misc flags */
+	uint32_t flags;		/* transaction flags */
 	unsigned int numops;	/* quantity of operations in the list */
 	pthread_mutex_t lock;	/* used to modify the operation list */
 	struct joper *op;	/* list of operations */