[evolution-data-server] Use guint for 1-bit bitfields and drop a couple unused assignments



commit f78b2d6a352ea9da18700eb3c879947f41f20ece
Author: Kjartan Maraas <kmaraas gnome org>
Date:   Sat Sep 26 12:40:02 2009 +0200

    Use guint for 1-bit bitfields and drop a couple unused assignments

 camel/camel-search-sql.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/camel/camel-search-sql.c b/camel/camel-search-sql.c
index 8d7b766..9358c31 100644
--- a/camel/camel-search-sql.c
+++ b/camel/camel-search-sql.c
@@ -103,13 +103,13 @@ typedef struct Node {
 	gchar post_token; /* post token to apppend with substitute */
 	gchar rval; /* rhs value for binary ops */
 	gint level; /* depth in the hier */
-	gint prefix:1; /* unary operator to be searched ?*/
-	gint sys_node:1; /* is it a predefined term ? */
-	gint ignore_lhs:1; /* ignore lhs value ?*/
-	gint swap :1;
-	gint prenode :1;
-	gint operator:1;
-	gint execute:1;
+	guint prefix:1; /* unary operator to be searched ?*/
+	guint sys_node:1; /* is it a predefined term ? */
+	guint ignore_lhs:1; /* ignore lhs value ?*/
+	guint swap :1;
+	guint prenode :1;
+	guint operator:1;
+	guint execute:1;
 	gint ref;
 }Node;
 
@@ -278,8 +278,8 @@ camel_sexp_to_sql (const gchar *txt)
 
 								if (token != G_TOKEN_LEFT_PAREN) {
 									/* remove #t*/
-									token = g_scanner_get_next_token (scanner);
-									token = g_scanner_get_next_token (scanner);
+									g_scanner_get_next_token (scanner);
+									g_scanner_get_next_token (scanner);
 								}
 
 							}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]