summaryrefslogtreecommitdiffstats
path: root/vlib-api/vlibsocket/sockclnt_vlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'vlib-api/vlibsocket/sockclnt_vlib.c')
-rw-r--r--vlib-api/vlibsocket/sockclnt_vlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vlib-api/vlibsocket/sockclnt_vlib.c b/vlib-api/vlibsocket/sockclnt_vlib.c
index e8d749c58d4..e16adfeb503 100644
--- a/vlib-api/vlibsocket/sockclnt_vlib.c
+++ b/vlib-api/vlibsocket/sockclnt_vlib.c
@@ -107,7 +107,7 @@ sockclnt_open_index (char *client_name, char *hostname, int port)
if (connect (sockfd, (const void *) &serv_addr, sizeof (serv_addr)) < 0)
{
clib_unix_warning ("Connect failure to (%s, %d)", hostname, port);
- close(sockfd);
+ close (sockfd);
return ~0;
}
@@ -115,7 +115,7 @@ sockclnt_open_index (char *client_name, char *hostname, int port)
if (rv < 0)
{
clib_unix_warning ("FIONBIO");
- close(sockfd);
+ close (sockfd);
return ~0;
}