diff options
author | Dmitri Pal <dpal@redhat.com> | 2012-12-23 16:13:14 -0500 |
---|---|---|
committer | Ondrej Kos <okos@redhat.com> | 2013-01-07 09:24:26 +0100 |
commit | 75fb29de5f180ff7a672865629c83367c10ae5ee (patch) | |
tree | fc807fdb512b4dbc74db461c320efc3787e5ef19 /collection | |
parent | e984e914b6aced5dabe250ad769c63186f21f8b8 (diff) | |
download | ding-libs2-75fb29de5f180ff7a672865629c83367c10ae5ee.tar.gz ding-libs2-75fb29de5f180ff7a672865629c83367c10ae5ee.tar.xz ding-libs2-75fb29de5f180ff7a672865629c83367c10ae5ee.zip |
Fix CLANG errors in unit test
Diffstat (limited to 'collection')
-rw-r--r-- | collection/collection_ut.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/collection/collection_ut.c b/collection/collection_ut.c index 1b48fc0..c34cd36 100644 --- a/collection/collection_ut.c +++ b/collection/collection_ut.c @@ -1648,7 +1648,6 @@ int search_test(void) } found = 0; - error = 0; error = col_is_item_in_collection(level1, "level1!level2!level3!level4!id", COL_TYPE_ANY, COL_TRAVERSE_DEFAULT, &found); if ((error) || (!found)) { col_destroy_collection(level1); @@ -1662,7 +1661,6 @@ int search_test(void) found = 0; - error = 0; error = col_is_item_in_collection(level1, NULL, COL_TYPE_INTEGER, COL_TRAVERSE_DEFAULT, &found); if ((error) || (!found)) { col_destroy_collection(level1); @@ -1676,7 +1674,6 @@ int search_test(void) found = 0; - error = 0; error = col_is_item_in_collection(level1, "", COL_TYPE_INTEGER, COL_TRAVERSE_DEFAULT, &found); if ((error) || (!found)) { col_destroy_collection(level1); @@ -1690,7 +1687,6 @@ int search_test(void) found = 0; - error = 0; error = col_is_item_in_collection(level1, "level3!level4!id", COL_TYPE_ANY, COL_TRAVERSE_DEFAULT, &found); if ((error) || (!found)) { col_destroy_collection(level1); @@ -1703,7 +1699,6 @@ int search_test(void) else COLOUT(printf("Expected item is found\n")); found = 0; - error = 0; error = col_is_item_in_collection(level1, "level3!packets", COL_TYPE_ANY, COL_TRAVERSE_DEFAULT, &found); if ((error) || (!found)) { col_destroy_collection(level1); @@ -1716,7 +1711,6 @@ int search_test(void) else COLOUT(printf("Expected item is found\n")); found = 0; - error = 0; error = col_is_item_in_collection(level1, "level1!level2!stack", COL_TYPE_ANY, COL_TRAVERSE_DEFAULT, &found); if ((error) || (!found)) { col_destroy_collection(level1); @@ -1729,7 +1723,6 @@ int search_test(void) else COLOUT(printf("Expected item is found\n")); found = 0; - error = 0; error = col_is_item_in_collection(level1, "level1!level2!level3", COL_TYPE_ANY, COL_TRAVERSE_DEFAULT, &found); if ((error) || (!found)) { col_destroy_collection(level1); @@ -1743,7 +1736,6 @@ int search_test(void) /* Negative tests */ found = 0; - error = 0; error = col_is_item_in_collection(level1, NULL, 0, COL_TRAVERSE_DEFAULT, &found); if ((error != ENOENT) || (found)) { col_destroy_collection(level1); @@ -1762,7 +1754,6 @@ int search_test(void) else COLOUT(printf("No item is found as expected.\n")); found = 0; - error = 0; error = col_is_item_in_collection(level1, "", 0, COL_TRAVERSE_DEFAULT, &found); if ((error != ENOENT) || (found)) { col_destroy_collection(level1); |