Diff between d860754d6472dcfea84bdbac5fdfc72da856144b and 3b9daaaf0c6da1cb3523ecdfcd3c671dc3f8ae82

Changed Files

File Additions Deletions Status
obexd/client/map.c +4 -4 modified

Full Patch

diff --git a/obexd/client/map.c b/obexd/client/map.c
index e606cb2..4f07fcb 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
@@ -400,7 +400,7 @@ static void parse_size(struct map_msg *msg, const char *value,
 static void parse_priority(struct map_msg *msg, const char *value,
 							DBusMessageIter *iter)
 {
-	gboolean flag = strcasecmp(value, "no");
+	gboolean flag = strcasecmp(value, "no") != 0;
 
 	if (flag)
 		msg->flags |= MAP_MSG_FLAG_PRIORITY;
@@ -413,7 +413,7 @@ static void parse_priority(struct map_msg *msg, const char *value,
 static void parse_read(struct map_msg *msg, const char *value,
 							DBusMessageIter *iter)
 {
-	gboolean flag = strcasecmp(value, "no");
+	gboolean flag = strcasecmp(value, "no") != 0;
 
 	if (flag)
 		msg->flags |= MAP_MSG_FLAG_READ;
@@ -426,7 +426,7 @@ static void parse_read(struct map_msg *msg, const char *value,
 static void parse_sent(struct map_msg *msg, const char *value,
 							DBusMessageIter *iter)
 {
-	gboolean flag = strcasecmp(value, "no");
+	gboolean flag = strcasecmp(value, "no") != 0;
 
 	if (flag)
 		msg->flags |= MAP_MSG_FLAG_SENT;
@@ -439,7 +439,7 @@ static void parse_sent(struct map_msg *msg, const char *value,
 static void parse_protected(struct map_msg *msg, const char *value,
 							DBusMessageIter *iter)
 {
-	gboolean flag = strcasecmp(value, "no");
+	gboolean flag = strcasecmp(value, "no") != 0;
 
 	if (flag)
 		msg->flags |= MAP_MSG_FLAG_PROTECTED;