s3:libsmb: make use of get_cmdline_auth_info_* helper functions in get_ipc_connect()
[amitay/samba.git] / source3 / libsmb / clireadwrite.c
index f0cb7ad291be5307fe33e9ca408e0b117ac8f37d..39874779bc1cb8facb400080c800ede84ea442d7 100644 (file)
@@ -162,7 +162,7 @@ struct tevent_req *cli_read_andx_create(TALLOC_CTX *mem_ctx,
                }
        }
 
-       subreq = cli_smb_req_create(state, ev, cli, SMBreadX, 0, wct,
+       subreq = cli_smb_req_create(state, ev, cli, SMBreadX, 0, 0, wct,
                                    state->vwv, 0, NULL);
        if (subreq == NULL) {
                TALLOC_FREE(req);
@@ -296,7 +296,7 @@ struct cli_pull_state {
         * The maximum is 256:
         * - which would be a window of 256 MByte
         *   for SMB2 with multi-credit
-        *   or smb1 unix extentions.
+        *   or smb1 unix extensions.
         */
        uint16_t max_chunks;
        uint16_t num_chunks;
@@ -437,7 +437,7 @@ static void cli_pull_setup_chunks(struct tevent_req *req)
                state->next_offset += chunk->total_size;
                state->remaining -= chunk->total_size;
 
-               DLIST_ADD_END(state->chunks, chunk, NULL);
+               DLIST_ADD_END(state->chunks, chunk);
                state->num_chunks++;
                state->num_waiting++;
 
@@ -484,7 +484,7 @@ static void cli_pull_chunk_ship(struct cli_pull_chunk *chunk)
 
                if (chunk->tmp_size == 0) {
                        /*
-                        * we git a short read, we're done
+                        * we got a short read, we're done
                         */
                        tevent_req_done(req);
                        return;
@@ -500,7 +500,7 @@ static void cli_pull_chunk_ship(struct cli_pull_chunk *chunk)
 
                if (chunk->tmp_size < chunk->total_size) {
                        /*
-                        * we git a short read, we're done
+                        * we got a short read, we're done
                         */
                        tevent_req_done(req);
                        return;
@@ -863,7 +863,7 @@ struct tevent_req *cli_write_andx_create(TALLOC_CTX *mem_ctx,
        state->iov[1].iov_base = discard_const_p(void, buf);
        state->iov[1].iov_len = state->size;
 
-       subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, wct, vwv,
+       subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, 0, wct, vwv,
                                    2, state->iov);
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
@@ -1111,7 +1111,7 @@ struct cli_push_state {
         * The maximum is 256:
         * - which would be a window of 256 MByte
         *   for SMB2 with multi-credit
-        *   or smb1 unix extentions.
+        *   or smb1 unix extensions.
         */
        uint16_t max_chunks;
        uint16_t num_chunks;
@@ -1250,7 +1250,7 @@ static void cli_push_setup_chunks(struct tevent_req *req)
                }
                state->next_offset += chunk->total_size;
 
-               DLIST_ADD_END(state->chunks, chunk, NULL);
+               DLIST_ADD_END(state->chunks, chunk);
                state->num_chunks++;
                state->num_waiting++;