[ovs-dev] [PATCH] tests: Fix sparse error on test-ovn.c
Alin Gabriel Serdean
aserdean at ovn.org
Tue Sep 12 01:27:28 UTC 2017
Commit d5c70d4bcc344ae10a644b83f1790a0235871efc fixed the MSVC issue
however, introduced a sparse error:
"tests/test-ovn.c:205:43: warning: Using plain integer as NULL pointer"
Use 'NULL' instead of '0'.
Signed-off-by: Alin Gabriel Serdean <aserdean at ovn.org>
---
tests/test-ovn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-ovn.c b/tests/test-ovn.c
index 345fd47..4beb2b8 100644
--- a/tests/test-ovn.c
+++ b/tests/test-ovn.c
@@ -202,7 +202,7 @@ create_addr_sets(struct shash *addr_sets)
static const char *const addrs3[] = {
"00:00:00:00:00:01", "00:00:00:00:00:02", "00:00:00:00:00:03",
};
- static const char *const addrs4[] = { 0 };
+ static const char *const addrs4[] = { NULL };
expr_addr_sets_add(addr_sets, "set1", addrs1, 3);
expr_addr_sets_add(addr_sets, "set2", addrs2, 3);
--
2.10.2.windows.1
More information about the dev
mailing list