From 069f63c8939a36b33a201ca9a726978ff54709cd Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 30 Nov 2014 18:29:23 +0000 Subject: 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' --- lib/smb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/smb.c') diff --git a/lib/smb.c b/lib/smb.c index efd1f5de7..5243051e0 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -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); -- cgit v1.2.3