From bf0ead55678a7c5ed3e11a1b500bb83e7facf722 Mon Sep 17 00:00:00 2001
From: Uros Majstorovic <majstor@majstor.org>
Date: Wed, 2 Aug 2023 09:36:16 +0200
Subject: implemented ROS recommendations

---
 ecp/server/server.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'ecp/server')

diff --git a/ecp/server/server.c b/ecp/server/server.c
index bbe7c4e..d34fb19 100644
--- a/ecp/server/server.c
+++ b/ecp/server/server.c
@@ -67,7 +67,7 @@ static void conn_free(ECPConnection *conn) {
 int ecp_init(ECPContext *ctx, ECPConnHandler *vconn_handler, ECPConnHandler *vlink_handler) {
     int rv;
 
-    rv = ecp_ctx_init(ctx, handle_err, conn_new, conn_free);
+    rv = ecp_ctx_init(ctx, handle_err, conn_new, conn_free, NULL);
     if (rv) return rv;
 
     rv = ecp_vconn_handler_init(ctx, vconn_handler);
@@ -125,7 +125,6 @@ int main(int argc, char *argv[]) {
         exit(1);
     }
 
-
     rv = ecp_addr_init(&addr, argv[3]);
     if (rv) {
         fprintf(stderr, "ecp_addr_init RV:%d\n", rv);
-- 
cgit v1.2.3