From 1a615196e331d77cb3a75575fbca8a377e1bf1e0 Mon Sep 17 00:00:00 2001 From: Kamil Cudnik Date: Thu, 16 Apr 2020 12:40:10 +0200 Subject: [PATCH] [saiplayer] Fix notification pointers (#604) --- saiplayer/SaiPlayer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/saiplayer/SaiPlayer.cpp b/saiplayer/SaiPlayer.cpp index 95ad5f06e4ae..f2d08a835bd9 100644 --- a/saiplayer/SaiPlayer.cpp +++ b/saiplayer/SaiPlayer.cpp @@ -582,23 +582,23 @@ void SaiPlayer::update_notifications_pointers( switch (attr.id) { case SAI_SWITCH_ATTR_SWITCH_STATE_CHANGE_NOTIFY: - attr.value.ptr = (void*)&m_switchNotifications.on_switch_state_change; + attr.value.ptr = (void*)m_switchNotifications.on_switch_state_change; break; case SAI_SWITCH_ATTR_SHUTDOWN_REQUEST_NOTIFY: - attr.value.ptr = (void*)&m_switchNotifications.on_switch_shutdown_request; + attr.value.ptr = (void*)m_switchNotifications.on_switch_shutdown_request; break; case SAI_SWITCH_ATTR_FDB_EVENT_NOTIFY: - attr.value.ptr = (void*)&m_switchNotifications.on_fdb_event; + attr.value.ptr = (void*)m_switchNotifications.on_fdb_event; break; case SAI_SWITCH_ATTR_PORT_STATE_CHANGE_NOTIFY: - attr.value.ptr = (void*)&m_switchNotifications.on_port_state_change; + attr.value.ptr = (void*)m_switchNotifications.on_port_state_change; break; case SAI_SWITCH_ATTR_QUEUE_PFC_DEADLOCK_NOTIFY: - attr.value.ptr = (void*)&m_switchNotifications.on_queue_pfc_deadlock; + attr.value.ptr = (void*)m_switchNotifications.on_queue_pfc_deadlock; break; default: