diff options
author | Alin Gabriel Serdean <aserdean@ovn.org> | 2017-09-12 04:27:28 +0300 |
---|---|---|
committer | Alin Gabriel Serdean <aserdean@ovn.org> | 2017-09-12 20:19:57 +0300 |
commit | 5d1851606492df2edf8aa8ac310b7115766f7f18 (patch) | |
tree | aee18842637bfb1f570e8c3173a309a0d547015a | |
parent | 379d7f9e1f32d7455f2ce2c9e875246b8d6285b5 (diff) | |
download | openvswitch-5d1851606492df2edf8aa8ac310b7115766f7f18.tar.gz |
tests: Fix sparse error on test-ovn.c
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@ovn.org>
Acked-by: Shashank Ram <rams@vmware.com>
-rw-r--r-- | tests/test-ovn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-ovn.c b/tests/test-ovn.c index 345fd47b2..4beb2b8d6 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); |