Commit 0dd8cab8 authored by Ivan Tyagov's avatar Ivan Tyagov

Cosmetics.

parent f442231e
......@@ -58,7 +58,7 @@
#include "common.h"
// variable indicating if OPC UA server is running or not
static volatile UA_Boolean running = true;
static volatile UA_Boolean RUNNING = true;
// global ID of coupler
static int COUPLER_ID = 0;
......@@ -105,14 +105,14 @@ char *X509_CERTIFICATE_FILENAME;
static void stopHandler(int sign)
{
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_SERVER, "received ctrl-c");
running = false;
RUNNING = false;
}
#ifndef DOING_UNIT_TESTS
int main(int argc, char **argv)
{
// init dictionary only once$
if (SUBSCRIBER_DICT==NULL){
if (SUBSCRIBER_DICT == NULL){
SUBSCRIBER_DICT = *dictAlloc();
}
......@@ -203,7 +203,7 @@ int main(int argc, char **argv)
}
// run server
UA_StatusCode retval = UA_Server_run(server, &running);
UA_StatusCode retval = UA_Server_run(server, &RUNNING);
UA_Server_delete(server);
// always leave attached slaves to a known safe shutdown state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment