summaryrefslogtreecommitdiffstats
path: root/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-05-07 14:53:39 +0000
committerGerrit Code Review <gerrit@fd.io>2019-05-07 14:53:39 +0000
commitc8e6bdf4282c34fd3199cdeec42895cbbc05d9c1 (patch)
tree58651402197fe0cf73561d6c639317b5d940b6f2 /utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
parent3ba9071c6899d64b36e910943f109ddc7c7e0809 (diff)
parente9a02cb3a565daab16e295c551dff80501f94974 (diff)
Merge "[HICN-153] vapi definition warning"
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() {