From a6dc593444353d758d0929f33b87fcdd17e89ae3 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Fri, 10 Feb 2017 21:45:12 +0530 Subject: cli: review fixes in gluster-block Signed-off-by: Pranith Kumar K Reviewed-by: Prasanna Kumar Kalever Signed-off-by: Prasanna Kumar Kalever --- daemon/gluster-blockd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'daemon') diff --git a/daemon/gluster-blockd.c b/daemon/gluster-blockd.c index f998d97..68d3995 100644 --- a/daemon/gluster-blockd.c +++ b/daemon/gluster-blockd.c @@ -9,10 +9,10 @@ */ -# include # include # include +# include "common.h" # include "block.h" @@ -31,9 +31,9 @@ glusterBlockCliThreadProc (void *vargp) } saun.sun_family = AF_UNIX; - strcpy(saun.sun_path, ADDRESS); + strcpy(saun.sun_path, GB_UNIX_ADDRESS); - unlink(ADDRESS); + unlink(GB_UNIX_ADDRESS); len = sizeof(saun.sun_family) + strlen(saun.sun_path); if (bind(sockfd, (struct sockaddr *) &saun, len) < 0) { @@ -41,12 +41,12 @@ glusterBlockCliThreadProc (void *vargp) exit(1); } - transp = svcunix_create(sockfd, 0, 0, ADDRESS); + transp = svcunix_create(sockfd, 0, 0, GB_UNIX_ADDRESS); if (transp == NULL) { fprintf (stderr, "%s", "cannot create tcp service"); exit(1); } - + if (!svc_register(transp, GLUSTER_BLOCK_CLI, GLUSTER_BLOCK_CLI_VERS, gluster_block_cli_1, IPPROTO_IP)) { fprintf (stderr, "%s", "unable to register (GLUSTER_BLOCK_CLI, GLUSTER_BLOCK_CLI_VERS, unix|local)."); exit(1); -- cgit