[ovs-dev] [PATCH 30/40] datapath-windows: Add dummy parameter for NotifyRouteChange2
Shashank Ram
rams at vmware.com
Fri Jul 14 17:25:40 UTC 2017
________________________________________
From: ovs-dev-bounces at openvswitch.org <ovs-dev-bounces at openvswitch.org> on behalf of Alin Serdean <aserdean at cloudbasesolutions.com>
Sent: Thursday, July 13, 2017 9:40 PM
To: dev at openvswitch.org
Subject: [ovs-dev] [PATCH 30/40] 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 at cloudbasesolutions.com>
---
datapath-windows/ovsext/IpHelper.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/datapath-windows/ovsext/IpHelper.c b/datapath-windows/ovsext/IpHelper.c
index e98dcd1..555351a 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.",
--
2.10.2.windows.1
_______________________________________________
Acked-by: Shashank Ram <rams at vmware.com>
More information about the dev
mailing list