s3:smb2cli_base: rename 'result' => 'req' in smb2cli_req_create()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jul 2011 15:59:51 +0000 (17:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 9 Jul 2011 10:40:26 +0000 (12:40 +0200)
metze

source3/libsmb/smb2cli_base.c

index 318f1a250b235986d3f9e1645fc4c19055f691ac..af2d10026d0405b133730ea0fb19fef4d600528f 100644 (file)
@@ -138,21 +138,21 @@ static bool smb2cli_req_set_pending(struct tevent_req *req)
 }
 
 struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
-                                      struct tevent_context *ev,
-                                      struct cli_state *cli,
-                                      uint16_t cmd,
-                                      uint32_t flags,
-                                      const uint8_t *fixed,
-                                      uint16_t fixed_len,
-                                      const uint8_t *dyn,
-                                      uint16_t dyn_len)
+                                     struct tevent_context *ev,
+                                     struct cli_state *cli,
+                                     uint16_t cmd,
+                                     uint32_t flags,
+                                     const uint8_t *fixed,
+                                     uint16_t fixed_len,
+                                     const uint8_t *dyn,
+                                     uint16_t dyn_len)
 {
-       struct tevent_req *result;
+       struct tevent_req *req;
        struct smb2cli_req_state *state;
 
-       result = tevent_req_create(mem_ctx, &state,
-                                  struct smb2cli_req_state);
-       if (result == NULL) {
+       req = tevent_req_create(mem_ctx, &state,
+                               struct smb2cli_req_state);
+       if (req == NULL) {
                return NULL;
        }
        state->ev = ev;
@@ -174,7 +174,7 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
        SIVAL(state->hdr, SMB2_HDR_TID,         cli->smb2.tid);
        SBVAL(state->hdr, SMB2_HDR_SESSION_ID,  cli->smb2.uid);
 
-       return result;
+       return req;
 }
 
 static void smb2cli_writev_done(struct tevent_req *subreq);