summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2012-02-20 22:27:31 +0530
committerVijay Bellur <vijay@gluster.com>2012-02-20 09:54:29 -0800
commitd349334fc0b3b069875b2724a5a46dfeb84289e4 (patch)
treebb5d3ac14cdfec434fca35ddea4b0f278106d329 /xlators/nfs/server/src
parent12480df27becfc5aef5ff0f1d712d4d73c894c7a (diff)
nfs/server: Fix compilation warnings
Change-Id: If5c2375adb3769827cf5099cb6b2d19ba75bf238 BUG: 795421 Signed-off-by: Vijay Bellur <vijay@gluster.com> Reviewed-on: http://review.gluster.com/2776 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src')
-rw-r--r--xlators/nfs/server/src/nlm4.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xlators/nfs/server/src/nlm4.c b/xlators/nfs/server/src/nlm4.c
index 6e8494ce0..5df6719a6 100644
--- a/xlators/nfs/server/src/nlm4.c
+++ b/xlators/nfs/server/src/nlm4.c
@@ -925,13 +925,11 @@ nlm4svc_send_granted (nfs3_call_state_t *cs)
nlm4_testargs testargs;
struct iobuf *iobuf = NULL;
struct iobref *iobref = NULL;
- struct nfs_state *nfs = NULL;
char peerip[INET6_ADDRSTRLEN+1];
pthread_t thr;
struct sockaddr_storage sa;
struct sockaddr *sockaddr = NULL;
- nfs = cs->nfsx->private;
rpc_transport_get_peeraddr (cs->trans, NULL, 0, &sa, sizeof (sa));
sockaddr = (struct sockaddr*) &sa;
@@ -1202,7 +1200,6 @@ nlm4_lock_fd_resume (void *carg)
nfs_user_t nfu = {0, };
nfs3_call_state_t *cs = NULL;
struct gf_flock flock = {0, };
- nlm_client_t *nlmclnt = NULL;
if (!carg)
return ret;
@@ -1210,8 +1207,8 @@ nlm4_lock_fd_resume (void *carg)
cs = (nfs3_call_state_t *)carg;
nlm4_check_fh_resolve_status (cs, stat, nlm4err);
- nlmclnt = nlm_search_and_add (cs->fd,
- cs->args.nlm4_lockargs.alock.caller_name);
+ (void) nlm_search_and_add (cs->fd,
+ cs->args.nlm4_lockargs.alock.caller_name);
nfs_request_user_init (&nfu, cs->req);
nlm4_lock_to_gf_flock (&flock, &cs->args.nlm4_lockargs.alock,
cs->args.nlm4_lockargs.exclusive);