aboutsummaryrefslogtreecommitdiffstats
path: root/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
diff options
context:
space:
mode:
authorMasoud Hemmatpour <mhemmatp@cisco.com>2019-04-04 13:34:04 +0200
committerMauro Sardara <msardara@cisco.com>2019-05-03 08:54:29 +0000
commite9a02cb3a565daab16e295c551dff80501f94974 (patch)
tree891701aac1b440c4e74c31f485dad667bfab3924 /utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
parent305e7617be61d21ebd0dee043588c469bc28ad3b (diff)
[HICN-153] vapi definition warning
Change-Id: I50f381540e171fe2808d4e56cc24ba6d66e8a2ab Signed-off-by: Masoud Hemmatpour <mhemmatp@cisco.com>
Diffstat (limited to 'utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c')
-rw-r--r--utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c b/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
index a1b4d7ad2..6c4f938ce 100644
--- a/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
+++ b/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
@@ -17,12 +17,14 @@
hc_sock_t * hsocket;
int hicn_connect_light() {
+
hsocket = hc_sock_create();
if (!hsocket)
HICN_LOG_ERR_MSG("Error creating socket\n");
if (hc_sock_connect(hsocket) < 0)
HICN_LOG_ERR_MSG("Error connecting to the forwarder\n");
return 0;
+
}
int hicn_disconnect_light() {