summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_wait.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-04 08:53:45 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-05 17:48:08 +0100
commitfdd6c106cf236150e4c5e7c6176156230c3ccfa9 (patch)
treef10fbe031964edd15188a7861f512cf710fb8800 /source4/ntvfs/posix/pvfs_wait.c
parent3d6587c777408bbc1c1ecfb82750136874c5e565 (diff)
downloadsamba-fdd6c106cf236150e4c5e7c6176156230c3ccfa9.tar.gz
samba-fdd6c106cf236150e4c5e7c6176156230c3ccfa9.tar.bz2
samba-fdd6c106cf236150e4c5e7c6176156230c3ccfa9.zip
s4:pvfs: remove compiler warning
metze
Diffstat (limited to 'source4/ntvfs/posix/pvfs_wait.c')
-rw-r--r--source4/ntvfs/posix/pvfs_wait.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c
index ddfc410bec..5552ab0d1b 100644
--- a/source4/ntvfs/posix/pvfs_wait.c
+++ b/source4/ntvfs/posix/pvfs_wait.c
@@ -78,13 +78,12 @@ static void pvfs_wait_dispatch(struct messaging_context *msg,
}
pwait->reason = PVFS_WAIT_EVENT;
- req = pwait->req;
/* the extra reference here is to ensure that the req
structure is not destroyed when the async request reply is
sent, which would cause problems with the other ntvfs
modules above us */
- talloc_reference(msg, req);
+ req = talloc_reference(msg, pwait->req);
ntvfs_async_setup(pwait->req, pwait);
talloc_unlink(msg, req);
}