diff options
author | Luk Claes <luk@debian.org> | 2012-05-19 16:21:14 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-28 14:49:44 +0200 |
commit | f43231c051d3be40b8676dd401e9511948b69bba (patch) | |
tree | 4993f59e32b6c34972180c3a9a09cd55ff026f89 /source3/libsmb | |
parent | bf38a5df5b69d41e4fa5fff7cb4447a5155058ce (diff) | |
download | samba-f43231c051d3be40b8676dd401e9511948b69bba.tar.gz samba-f43231c051d3be40b8676dd401e9511948b69bba.tar.xz samba-f43231c051d3be40b8676dd401e9511948b69bba.zip |
s3:libsmb: remove unused (un)set_pending functions
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/async_smb.c | 10 | ||||
-rw-r--r-- | source3/libsmb/clientgen.c | 2 | ||||
-rw-r--r-- | source3/libsmb/clioplock.c | 3 |
3 files changed, 3 insertions, 12 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 721ac9bfe4b..8ca19111bfa 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -23,16 +23,6 @@ #include "async_smb.h" #include "../libcli/smb/smbXcli_base.h" -void cli_smb_req_unset_pending(struct tevent_req *req) -{ - smbXcli_req_unset_pending(req); -} - -bool cli_smb_req_set_pending(struct tevent_req *req) -{ - return smbXcli_req_set_pending(req); -} - /* * Fetch a smb request's mid. Only valid after the request has been sent by * cli_smb_req_send(). diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 75948b8e998..561a47f3f30 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -582,7 +582,7 @@ static void cli_echo_done(struct tevent_req *subreq) return; } - if (!cli_smb_req_set_pending(subreq)) { + if (!smbXcli_req_set_pending(subreq)) { tevent_req_nterror(req, NT_STATUS_NO_MEMORY); return; } diff --git a/source3/libsmb/clioplock.c b/source3/libsmb/clioplock.c index a708453877c..e6c20e44e70 100644 --- a/source3/libsmb/clioplock.c +++ b/source3/libsmb/clioplock.c @@ -21,6 +21,7 @@ #include "../lib/util/tevent_ntstatus.h" #include "async_smb.h" #include "libsmb/libsmb.h" +#include "../libcli/smb/smbXcli_base.h" struct cli_smb_oplock_break_waiter_state { uint16_t fnum; @@ -52,7 +53,7 @@ struct tevent_req *cli_smb_oplock_break_waiter_send(TALLOC_CTX *mem_ctx, } cli_smb_req_set_mid(subreq, 0xffff); - if (!cli_smb_req_set_pending(subreq)) { + if (!smbXcli_req_set_pending(subreq)) { tevent_req_nterror(req, NT_STATUS_NO_MEMORY); return tevent_req_post(req, ev); } |