diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2017-07-14 04:40:56 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-08-02 11:31:20 -0700 |
commit | f0aeea81bd27f1d757df531890bbf0ad3bbbc111 (patch) | |
tree | 5b0ba76a4c489c1611c43cc1e30644295c0d7d76 /datapath-windows/ovsext/IpHelper.c | |
parent | 20804d501994e7e5a1b7876fce40b473770c6101 (diff) | |
download | openvswitch-f0aeea81bd27f1d757df531890bbf0ad3bbbc111.tar.gz |
datapath-windows: Add dummy parameter for NotifyRouteChange2
Add a dummy parameter when using `NotifyRouteChange2` to keep static
static analysis happy.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Shashank Ram <rams@vmware.com>
Diffstat (limited to 'datapath-windows/ovsext/IpHelper.c')
-rw-r--r-- | datapath-windows/ovsext/IpHelper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/IpHelper.c b/datapath-windows/ovsext/IpHelper.c index e98dcd1bd..555351a5c 100644 --- a/datapath-windows/ovsext/IpHelper.c +++ b/datapath-windows/ovsext/IpHelper.c @@ -917,6 +917,7 @@ static NTSTATUS OvsRegisterChangeNotification() { NTSTATUS status; + UINT dummy = 0; status = NotifyIpInterfaceChange(AF_INET, OvsChangeCallbackIpInterface, @@ -928,7 +929,8 @@ OvsRegisterChangeNotification() return status; } - status = NotifyRouteChange2(AF_INET, OvsChangeCallbackIpRoute, NULL, + /* The CallerContext is dummy and should never be used */ + status = NotifyRouteChange2(AF_INET, OvsChangeCallbackIpRoute, &dummy, TRUE, &ipRouteNotificationHandle); if (status != STATUS_SUCCESS) { OVS_LOG_ERROR("Fail to regiter ip route change, status: %x.", |