From dcfa0d68e534d3c86833a2479fa7e18b6516be03 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 23 Jan 2020 21:15:52 +0100 Subject: [PATCH] remotecontrol: avoid possible compiler warnings with -Wignored-qualifiers Leading const should be superfluous. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/515f61d4ab440f5d58c002a881ae6adbe0e1b8c0 Author: Thilo Graf Date: 2020-01-23 (Thu, 23 Jan 2020) ------------------ This commit was generated by Migit --- src/daemonc/remotecontrol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp index 7201ad01e..9c51e7c01 100644 --- a/src/daemonc/remotecontrol.cpp +++ b/src/daemonc/remotecontrol.cpp @@ -303,7 +303,7 @@ int CRemoteControl::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data #endif char *p = new char[sizeof(t_channel_id)]; memcpy(p, ¤t_channel_id, sizeof(t_channel_id)); - g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTPIDS, (const neutrino_msg_data_t)p, false); + g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTPIDS, (neutrino_msg_data_t)p, false); processAPIDnames(); } @@ -385,7 +385,7 @@ void CRemoteControl::getSubChannels() char *p = new char[sizeof(t_channel_id)]; memcpy(p, ¤t_channel_id, sizeof(t_channel_id)); - g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory + g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (neutrino_msg_data_t)p, false); // data is pointer to allocated memory } } } @@ -427,7 +427,7 @@ void CRemoteControl::getNVODs() char *p = new char[sizeof(t_channel_id)]; memcpy(p, ¤t_channel_id, sizeof(t_channel_id)); - g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory + g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (neutrino_msg_data_t)p, false); // data is pointer to allocated memory if ( selected_subchannel == -1 ) { @@ -611,7 +611,7 @@ void CRemoteControl::processAPIDnames() char *p = new char[sizeof(t_channel_id)]; memcpy(p, ¤t_channel_id, sizeof(t_channel_id)); - g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTAPIDS, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory + g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTAPIDS, (neutrino_msg_data_t)p, false); // data is pointer to allocated memory }