summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/process.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index d3d154270..fdcb56150 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -306,7 +306,8 @@ void setPriority(const bool big A_UNUSED)
#include <mutex>
#include <condition_variable>
-struct _NaclMessageHandle {
+struct _NaclMessageHandle
+{
bool handled;
std::string type;
std::string message;
@@ -342,13 +343,17 @@ NaclMessageHandle *naclRegisterMessageHandler(const std::string &type)
handle->handled = false;
handle->type = type;
- PSEventRegisterMessageHandler(type.c_str(), naclMessageHandlerFunc, (void *)handle);
+ PSEventRegisterMessageHandler(type.c_str(),
+ naclMessageHandlerFunc,
+ (void *)handle);
return handle;
}
void naclUnregisterMessageHandler(NaclMessageHandle *handle)
{
- PSEventRegisterMessageHandler(handle->type.c_str(), NULL, NULL);
+ PSEventRegisterMessageHandler(handle->type.c_str(),
+ nullptr,
+ nullptr);
delete handle;
}