summaryrefslogtreecommitdiff
path: root/client/vpnconnections.c
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
commit1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch)
tree6e991827d28537f7f40f20786c2354fd04a9fdad /client/vpnconnections.c
parentfbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff)
downloadconnman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'client/vpnconnections.c')
-rw-r--r--client/vpnconnections.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/vpnconnections.c b/client/vpnconnections.c
index f4b8d3c..d7bcbfe 100644
--- a/client/vpnconnections.c
+++ b/client/vpnconnections.c
@@ -53,7 +53,7 @@ static void print_connection(char *path, DBusMessageIter *iter)
dbus_message_iter_recurse(&entry, &val);
dbus_message_iter_get_basic(&val, &str);
- if (str != NULL) {
+ if (str) {
if (strcmp(str, "ready") == 0)
state = 'R';
else if (strcmp(str, "configuration") == 0)
@@ -67,7 +67,7 @@ static void print_connection(char *path, DBusMessageIter *iter)
}
str = strrchr(path, '/');
- if (str != NULL)
+ if (str)
str++;
else
str = path;
@@ -101,7 +101,7 @@ void __connmanctl_vpnconnections_list(DBusMessageIter *iter)
print_connection(path, &dict);
}
- if (dbus_message_iter_has_next(&array) == TRUE)
+ if (dbus_message_iter_has_next(&array))
fprintf(stdout, "\n");
dbus_message_iter_next(&array);