24 lines
798 B
Diff
24 lines
798 B
Diff
From 7257d3c06c27163e1d7f85bb9ab9e79520444492 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
|
Date: Wed, 1 Mar 2017 20:30:08 +0100
|
|
Subject: [PATCH 1/2] Fix test warning
|
|
|
|
---
|
|
tests/common.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/common.c b/tests/common.c
|
|
index 728997a..308b762 100644
|
|
--- a/tests/common.c
|
|
+++ b/tests/common.c
|
|
@@ -14,7 +14,7 @@ check_address(netresolve_query_t query, int exp_family, const char *exp_address_
|
|
assert(netresolve_query_get_count(query) == 1);
|
|
|
|
netresolve_query_get_node_info(query, 0, &family, &address, &ifindex);
|
|
- assert(family = exp_family);
|
|
+ assert(family == exp_family);
|
|
assert(!memcmp(address, exp_address, family == AF_INET6 ? 16 : 4));
|
|
assert(ifindex == exp_ifindex);
|
|
}
|
|
|