summaryrefslogtreecommitdiff
path: root/unit/test-ippool.c
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 10:37:39 +0800
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 10:37:39 +0800
commit1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch)
tree6e991827d28537f7f40f20786c2354fd04a9fdad /unit/test-ippool.c
parentfbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff)
downloadconnman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'unit/test-ippool.c')
-rw-r--r--unit/test-ippool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unit/test-ippool.c b/unit/test-ippool.c
index e5c08ca7..a11220d1 100644
--- a/unit/test-ippool.c
+++ b/unit/test-ippool.c
@@ -47,7 +47,7 @@ static void test_case_1(void)
__connman_ippool_init();
pool = __connman_ippool_create(23, 1, 500, NULL, NULL);
- g_assert(pool == NULL);
+ g_assert(!pool);
for (i = 0; i < 100000; i++) {
pool = __connman_ippool_create(23, 1, 20, NULL, NULL);
@@ -131,7 +131,7 @@ static void test_case_3(void)
while (TRUE) {
pool = __connman_ippool_create(23, 1, 100, NULL, NULL);
- if (pool == NULL)
+ if (!pool)
break;
i += 1;
@@ -154,7 +154,7 @@ static void test_case_3(void)
LOG("Number of blocks %d", i);
- for (it = list; it != NULL; it = it->next) {
+ for (it = list; it; it = it->next) {
pool = it->data;
__connman_ippool_unref(pool);