diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-30 18:29:23 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-30 18:33:37 +0000 |
commit | 069f63c8939a36b33a201ca9a726978ff54709cd (patch) | |
tree | 30525a8156d83fcff6b6903bbe377707985aca09 /lib | |
parent | 676f79f8d285631fc03eeaf38e0178a138d0499a (diff) |
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'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smb.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -214,6 +214,8 @@ static CURLcode smb_connect(struct connectdata *conn, bool *done) struct smb_conn *smbc = &conn->proto.smbc; char *slash; + (void) done; + /* Initialize the connection state */ memset(smbc, 0, sizeof(*smbc)); 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"; return smb_send_message(conn, SMB_COM_NEGOTIATE, msg, 15); -}; +} 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; + (void) premature; + Curl_safefree(req->share); 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_request *req = conn->data->req.protop; + (void) dead; + Curl_safefree(smbc->domain); Curl_safefree(smbc->send_buf); Curl_safefree(smbc->recv_buf); |