addBusMatch(MATCH_RELOADING);
m_connection.flush();
m_connection.addFilter(messageHandler,
- reinterpret_cast<void*>(this));
+ static_cast<void*>(this));
subscribeSignals();
m_connection.requestName(DBUS_CLIENT_NAME);
getUnitPath();
DBusHandlerResult ServiceManager::messageHandler(DBusConnection *conn, DBusMessage *msg, void *t)
{
(void) conn;
- ServiceManager* self = reinterpret_cast<ServiceManager*>(t);
+ ServiceManager* self = static_cast<ServiceManager*>(t);
DBus::MessageIn messageIn(msg, true);
if (messageIn.isSignal(SYSTEMD_MANAGER_INTERFACE, MATCH_JOB_REMOVED))
{
m_type = type;
m_id = id;
- m_data = Cynara::PluginData(reinterpret_cast<const char*>(data), dataSize);
+ m_data = Cynara::PluginData(static_cast<const char*>(data), dataSize);
m_client.clear();
m_user.clear();
m_privilege.clear();
int ret;
RUNNER_DEFER_SCOPE(ret = cynara_async_initialize(&m_cynara, nullptr,
StatusMonitor::updateStatus,
- reinterpret_cast<void*>(&m_statusMonitor)););
+ static_cast<void*>(&m_statusMonitor)););
RUNNER_ASSERT_MSG(ret == CYNARA_API_SUCCESS,
"cynara_async_initialize() failed. ret = " << ret << ".");
RUNNER_ASSERT_MSG(m_cynara != nullptr, "cynara_async struct was not initialized.");
checkData.m_user.c_str(),
checkData.m_privilege.c_str(), &id,
RequestMonitor::updateResponse,
- reinterpret_cast<void*>(
+ static_cast<void*>(
&m_requestMonitor)););
if (ret == CYNARA_API_SUCCESS)
m_requestMonitor.registerRequest(id, callbackData);
int response, void *data)
{
RUNNER_DEFER_TRYCATCH(
- RequestMonitor *monitor = reinterpret_cast<RequestMonitor*>(data);
+ RequestMonitor *monitor = static_cast<RequestMonitor*>(data);
if (!monitor) {
RUNNER_FAIL_MSG("Bad user data (nullptr) in response callback.");
return;
void StatusMonitor::updateStatus(int oldFd, int newFd, cynara_async_status status, void *data)
{
RUNNER_DEFER_TRYCATCH(
- StatusMonitor *monitor = reinterpret_cast<StatusMonitor*>(data);
+ StatusMonitor *monitor = static_cast<StatusMonitor*>(data);
if (!monitor) {
RUNNER_FAIL_MSG("Bad user data (nullptr) in status callback.");
return;