mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
smb.c: Fixed compilation warnings
smb.c:780: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign smb.c:781: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign smb.c:804: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign
This commit is contained in:
parent
0df2ed85fd
commit
7635577ad7
10
lib/smb.c
10
lib/smb.c
@ -6,6 +6,7 @@
|
|||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014, Bill Nagel <wnagel@tycoint.com>, Exacq Technologies
|
* Copyright (C) 2014, Bill Nagel <wnagel@tycoint.com>, Exacq Technologies
|
||||||
|
* Copyright (C) 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -777,8 +778,10 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done)
|
|||||||
next_state = SMB_CLOSE;
|
next_state = SMB_CLOSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
len = Curl_read16_le(((char *) msg) + sizeof(struct smb_header) + 11);
|
len = Curl_read16_le(((unsigned char *) msg) +
|
||||||
off = Curl_read16_le(((char *) msg) + sizeof(struct smb_header) + 13);
|
sizeof(struct smb_header) + 11);
|
||||||
|
off = Curl_read16_le(((unsigned char *) msg) +
|
||||||
|
sizeof(struct smb_header) + 13);
|
||||||
if(len > 0) {
|
if(len > 0) {
|
||||||
result = Curl_client_write(conn, CLIENTWRITE_BODY,
|
result = Curl_client_write(conn, CLIENTWRITE_BODY,
|
||||||
(char *)msg + off + sizeof(unsigned int),
|
(char *)msg + off + sizeof(unsigned int),
|
||||||
@ -801,7 +804,8 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done)
|
|||||||
next_state = SMB_CLOSE;
|
next_state = SMB_CLOSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
len = Curl_read16_le(((char *) msg) + sizeof(struct smb_header) + 5);
|
len = Curl_read16_le(((unsigned char *) msg) +
|
||||||
|
sizeof(struct smb_header) + 5);
|
||||||
conn->data->req.bytecount += len;
|
conn->data->req.bytecount += len;
|
||||||
conn->data->req.offset += len;
|
conn->data->req.offset += len;
|
||||||
Curl_pgrsSetUploadCounter(conn->data, conn->data->req.bytecount);
|
Curl_pgrsSetUploadCounter(conn->data, conn->data->req.bytecount);
|
||||||
|
Loading…
Reference in New Issue
Block a user