summaryrefslogtreecommitdiff
path: root/source3/libsmb/clifsinfo.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-11-16 09:59:58 +0100
committerStefan Metzmacher <metze@samba.org>2009-11-16 10:13:05 +0100
commit0762893c48c7f5a6532ee35ad188c80b8a6f3981 (patch)
treef79a2a9d074a6bebcffb086892d4a069f4c2e747 /source3/libsmb/clifsinfo.c
parent88801709781df4fc84bf4b9da12d7f1808bdd86b (diff)
downloadsamba-0762893c48c7f5a6532ee35ad188c80b8a6f3981.tar.gz
samba-0762893c48c7f5a6532ee35ad188c80b8a6f3981.tar.bz2
samba-0762893c48c7f5a6532ee35ad188c80b8a6f3981.zip
s3:libsmb: avoid passing a function call as function parameter
Using a helper variable makes it easier to "step" into the desired function within gdb. metze
Diffstat (limited to 'source3/libsmb/clifsinfo.c')
-rw-r--r--source3/libsmb/clifsinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/clifsinfo.c b/source3/libsmb/clifsinfo.c
index 6e23dbc689..00fd47264b 100644
--- a/source3/libsmb/clifsinfo.c
+++ b/source3/libsmb/clifsinfo.c
@@ -206,9 +206,9 @@ struct tevent_req *cli_set_unix_extensions_capabilities_send(
static void cli_set_unix_extensions_capabilities_done(
struct tevent_req *subreq)
{
- return tevent_req_simple_finish_ntstatus(
- subreq, cli_trans_recv(subreq, NULL, NULL, 0, NULL,
- NULL, 0, NULL, NULL, 0, NULL));
+ NTSTATUS status = cli_trans_recv(subreq, NULL, NULL, 0, NULL,
+ NULL, 0, NULL, NULL, 0, NULL);
+ return tevent_req_simple_finish_ntstatus(subreq, status);
}
NTSTATUS cli_set_unix_extensions_capabilities_recv(struct tevent_req *req)