aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-10-05 00:00:54 -0300
committerdequis <dx@dxzone.com.ar>2017-10-05 00:00:54 -0300
commit671b1efd6e58761f2167b9d5ee6d1f9e6496a146 (patch)
tree49c191302459b2ef5a3c2963f93585c7ee26ab17
parenta1c92ddfe4e8fbd01b13937f7d771cccc67ddeb5 (diff)
tests: fix build warnings in jabber_buddy_by_jid tests
-rw-r--r--tests/check_jabber_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check_jabber_util.c b/tests/check_jabber_util.c
index 43180fce..e4d4533a 100644
--- a/tests/check_jabber_util.c
+++ b/tests/check_jabber_util.c
@@ -36,7 +36,7 @@ static void check_buddy_add(int l)
fail_unless(jabber_buddy_by_jid(ic, "WILMER@GAAST.NET/BitlBee", GET_BUDDY_EXACT) == budw1);
fail_unless(jabber_buddy_by_jid(ic, "wilmer@GAAST.NET/BitlBee", GET_BUDDY_CREAT) == budw1);
- fail_unless(jabber_buddy_by_jid(ic, "wilmer@gaast.net", GET_BUDDY_EXACT));
+ fail_unless(jabber_buddy_by_jid(ic, "wilmer@gaast.net", GET_BUDDY_EXACT) != NULL);
fail_unless(jabber_buddy_by_jid(ic, "WILMER@gaast.net", 0) == budw3);
/* Check O_FIRST and see if it's indeed the first item from the list. */
@@ -82,7 +82,7 @@ static void check_buddy_add(int l)
fail_if(jabber_buddy_remove(ic, "nekkid@lamejab.net/Illegal"));
fail_unless(jabber_buddy_remove(ic, "nekkid@lamejab.net"));
- fail_if(jabber_buddy_by_jid(ic, "nekkid@lamejab.net", 0));
+ fail_if(jabber_buddy_by_jid(ic, "nekkid@lamejab.net", 0) != NULL);
/* Fixing a bug in this branch that caused information to get lost when
removing the first full JID from a list. */