]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: remove unused 'inbuf' variable
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Jun 2012 13:59:42 +0000 (15:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 5 Jun 2012 15:33:49 +0000 (17:33 +0200)
metze

source3/libsmb/clientgen.c
source3/libsmb/clifile.c
source3/libsmb/climessage.c
source3/libsmb/clioplock.c
source3/libsmb/clireadwrite.c

index 0bbcdf5c71c9027fdf8d6116e4bbcbac856ffcd6..c8bd7e5f5286dd7303988cc7b53bbd8888ee19c5 100644 (file)
@@ -483,9 +483,8 @@ static void cli_echo_done(struct tevent_req *subreq)
        NTSTATUS status;
        uint32_t num_bytes;
        uint8_t *bytes;
-       uint8_t *inbuf;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 0, NULL, NULL,
+       status = cli_smb_recv(subreq, state, NULL, 0, NULL, NULL,
                              &num_bytes, &bytes);
        if (!NT_STATUS_IS_OK(status)) {
                tevent_req_nterror(req, status);
index b762a377c180941e472350fee7bc9012a91b834d..8fdbe15edc199e004f2740528583ff32d6b1f699 100644 (file)
@@ -1852,10 +1852,9 @@ static void cli_ntcreate_done(struct tevent_req *subreq)
        uint16_t *vwv;
        uint32_t num_bytes;
        uint8_t *bytes;
-       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 3, &wct, &vwv,
+       status = cli_smb_recv(subreq, state, NULL, 3, &wct, &vwv,
                              &num_bytes, &bytes);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
@@ -2241,10 +2240,9 @@ static void cli_openx_done(struct tevent_req *subreq)
                req, struct cli_openx_state);
        uint8_t wct;
        uint16_t *vwv;
-       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 3, &wct, &vwv, NULL,
+       status = cli_smb_recv(subreq, state, NULL, 3, &wct, &vwv, NULL,
                              NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
@@ -3279,10 +3277,9 @@ static void cli_getattrE_done(struct tevent_req *subreq)
                req, struct cli_getattrE_state);
        uint8_t wct;
        uint16_t *vwv = NULL;
-       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 11, &wct, &vwv,
+       status = cli_smb_recv(subreq, state, NULL, 11, &wct, &vwv,
                              NULL, NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
@@ -3439,10 +3436,9 @@ static void cli_getatr_done(struct tevent_req *subreq)
                req, struct cli_getatr_state);
        uint8_t wct;
        uint16_t *vwv = NULL;
-       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 4, &wct, &vwv, NULL,
+       status = cli_smb_recv(subreq, state, NULL, 4, &wct, &vwv, NULL,
                              NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
@@ -3922,10 +3918,9 @@ static void cli_dskattr_done(struct tevent_req *subreq)
                req, struct cli_dskattr_state);
        uint8_t wct;
        uint16_t *vwv = NULL;
-       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 4, &wct, &vwv, NULL,
+       status = cli_smb_recv(subreq, state, NULL, 4, &wct, &vwv, NULL,
                              NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
@@ -4052,9 +4047,8 @@ static void cli_ctemp_done(struct tevent_req *subreq)
        uint16_t *vwv;
        uint32_t num_bytes = 0;
        uint8_t *bytes = NULL;
-       uint8_t *inbuf;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 1, &wcnt, &vwv,
+       status = cli_smb_recv(subreq, state, NULL, 1, &wcnt, &vwv,
                              &num_bytes, &bytes);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
index 6c562fa29033f1b17160b272c0a74b042abfc437..4e99761bf3a6ac120ed54e16a579dbbdaff32b4c 100644 (file)
@@ -97,9 +97,8 @@ static void cli_message_start_done(struct tevent_req *subreq)
        NTSTATUS status;
        uint8_t wct;
        uint16_t *vwv;
-       uint8_t *inbuf;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 0, &wct, &vwv,
+       status = cli_smb_recv(subreq, state, NULL, 0, &wct, &vwv,
                              NULL, NULL);
        TALLOC_FREE(subreq);
        if (!NT_STATUS_IS_OK(status)) {
index 2c5ec0b8b30bd9b74c5d6e4cd154622e3ca10757..0b3ca2c0addbcb196dbbd18a1a16f40051fad0e8 100644 (file)
@@ -71,10 +71,9 @@ static void cli_smb_oplock_break_waiter_done(struct tevent_req *subreq)
        uint16_t *vwv;
        uint32_t num_bytes;
        uint8_t *bytes;
-       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 8, &wct, &vwv,
+       status = cli_smb_recv(subreq, state, NULL, 8, &wct, &vwv,
                              &num_bytes, &bytes);
        TALLOC_FREE(subreq);
        if (!NT_STATUS_IS_OK(status)) {
index b7ee7d5911467217a2df77102afae8404cff9486..3cc6cf8047c85c852e201b8fedc929cfc2a1edc1 100644 (file)
@@ -923,10 +923,9 @@ static void cli_write_andx_done(struct tevent_req *subreq)
                req, struct cli_write_andx_state);
        uint8_t wct;
        uint16_t *vwv;
-       uint8_t *inbuf;
        NTSTATUS status;
 
-       status = cli_smb_recv(subreq, state, &inbuf, 6, &wct, &vwv,
+       status = cli_smb_recv(subreq, state, NULL, 6, &wct, &vwv,
                              NULL, NULL);
        TALLOC_FREE(subreq);
        if (NT_STATUS_IS_ERR(status)) {