mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
smb.c: Fixed compilation warnings
smb.c:212: warning: unused parameter 'done' smb.c:380: warning: ISO C does not allow extra ';' outside of a function smb.c:812: warning: unused parameter 'premature' smb.c:822: warning: unused parameter 'dead'
This commit is contained in:
parent
676f79f8d2
commit
069f63c893
@ -214,6 +214,8 @@ static CURLcode smb_connect(struct connectdata *conn, bool *done)
|
|||||||
struct smb_conn *smbc = &conn->proto.smbc;
|
struct smb_conn *smbc = &conn->proto.smbc;
|
||||||
char *slash;
|
char *slash;
|
||||||
|
|
||||||
|
(void) done;
|
||||||
|
|
||||||
/* Initialize the connection state */
|
/* Initialize the connection state */
|
||||||
memset(smbc, 0, sizeof(*smbc));
|
memset(smbc, 0, sizeof(*smbc));
|
||||||
smbc->state = SMB_CONNECTING;
|
smbc->state = SMB_CONNECTING;
|
||||||
@ -378,7 +380,7 @@ static CURLcode smb_send_negotiate(struct connectdata *conn)
|
|||||||
const char *msg = "\x00\x0c\x00\x02NT LM 0.12";
|
const char *msg = "\x00\x0c\x00\x02NT LM 0.12";
|
||||||
|
|
||||||
return smb_send_message(conn, SMB_COM_NEGOTIATE, msg, 15);
|
return smb_send_message(conn, SMB_COM_NEGOTIATE, msg, 15);
|
||||||
};
|
}
|
||||||
|
|
||||||
static CURLcode smb_send_setup(struct connectdata *conn)
|
static CURLcode smb_send_setup(struct connectdata *conn)
|
||||||
{
|
{
|
||||||
@ -814,6 +816,8 @@ static CURLcode smb_done(struct connectdata *conn, CURLcode status,
|
|||||||
{
|
{
|
||||||
struct smb_request *req = conn->data->req.protop;
|
struct smb_request *req = conn->data->req.protop;
|
||||||
|
|
||||||
|
(void) premature;
|
||||||
|
|
||||||
Curl_safefree(req->share);
|
Curl_safefree(req->share);
|
||||||
Curl_safefree(conn->data->req.protop);
|
Curl_safefree(conn->data->req.protop);
|
||||||
|
|
||||||
@ -825,6 +829,8 @@ static CURLcode smb_disconnect(struct connectdata *conn, bool dead)
|
|||||||
struct smb_conn *smbc = &conn->proto.smbc;
|
struct smb_conn *smbc = &conn->proto.smbc;
|
||||||
struct smb_request *req = conn->data->req.protop;
|
struct smb_request *req = conn->data->req.protop;
|
||||||
|
|
||||||
|
(void) dead;
|
||||||
|
|
||||||
Curl_safefree(smbc->domain);
|
Curl_safefree(smbc->domain);
|
||||||
Curl_safefree(smbc->send_buf);
|
Curl_safefree(smbc->send_buf);
|
||||||
Curl_safefree(smbc->recv_buf);
|
Curl_safefree(smbc->recv_buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user