summaryrefslogtreecommitdiff
path: root/src/gateway
diff options
context:
space:
mode:
authorFrederic Berat <fberat@de.adit-jv.com>2015-12-03 13:22:26 +0100
committerGernot Wirschal <gernot.wirschal@bmw.de>2016-04-28 13:31:55 +0200
commitdf57c468df1f7f2e2f38f3db3c087cc4ca56fed1 (patch)
tree45736fd8745915b8aaa3473fb6ad1ee7b1e37658 /src/gateway
parenta9a43701138c99b3211ded8d388666161f7cde67 (diff)
downloadDLT-daemon-df57c468df1f7f2e2f38f3db3c087cc4ca56fed1.tar.gz
dlt-daemon: Connection activation rework
The activation of the connection is now centralized in one common function. Signed-off-by: Frederic Berat <fberat@de.adit-jv.com> Change-Id: I86703eab411088905a85f526d5102875e2c92b7e
Diffstat (limited to 'src/gateway')
-rw-r--r--src/gateway/dlt_gateway.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gateway/dlt_gateway.c b/src/gateway/dlt_gateway.c
index 89e97a5..c88d35e 100644
--- a/src/gateway/dlt_gateway.c
+++ b/src/gateway/dlt_gateway.c
@@ -793,8 +793,7 @@ int dlt_gateway_process_passive_node_messages(DltDaemon *daemon,
con->status = DLT_GATEWAY_DISCONNECTED;
if (dlt_event_handler_unregister_connection(&daemon_local->pEvent,
daemon_local,
- receiver->fd,
- DLT_CONNECTION_GATEWAY) != 0)
+ receiver->fd) != 0)
{
dlt_log(LOG_ERR, "Remove passive node Connection failed\n");
}
@@ -854,8 +853,7 @@ int dlt_gateway_process_passive_node_messages(DltDaemon *daemon,
con->trigger = DLT_GATEWAY_DISABLED;
if (dlt_event_handler_unregister_connection(&daemon_local->pEvent,
daemon_local,
- receiver->fd,
- DLT_CONNECTION_GATEWAY)
+ receiver->fd)
!= 0)
{
dlt_log(LOG_ERR, "Remove passive node Connection failed\n");
@@ -1095,8 +1093,7 @@ int dlt_gateway_process_on_demand_request(DltGateway *gateway,
con->status = DLT_GATEWAY_DISCONNECTED;
if (dlt_event_handler_unregister_connection(&daemon_local->pEvent,
daemon_local,
- con->client.sock,
- DLT_CONNECTION_GATEWAY) != 0)
+ con->client.sock) != 0)
{
dlt_log(LOG_ERR,
"Remove passive node event handler connection failed\n");