aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.h2
-rw-r--r--lib/ftp.c5
-rw-r--r--lib/url.c14
-rw-r--r--lib/urldata.h12
4 files changed, 16 insertions, 17 deletions
diff --git a/lib/connect.h b/lib/connect.h
index 5e40232c3..f38fbfe1b 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -23,7 +23,7 @@
* $Id$
***************************************************************************/
-int Curl_nonblock(int socket, /* operate on this */
+int Curl_nonblock(int sockfd, /* operate on this */
int nonblock /* TRUE or FALSE */);
CURLcode Curl_is_connected(struct connectdata *conn,
diff --git a/lib/ftp.c b/lib/ftp.c
index 4b19bd0fc..4080af081 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -319,7 +319,6 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
if(*ptr=='\n') {
/* a newline is CRLF in ftp-talk, so the CR is ignored as
the line isn't really terminated until the LF comes */
- CURLcode result;
/* output debug output if that is requested */
if(data->set.verbose)
@@ -1908,9 +1907,9 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
char *bytes;
bytes=strstr(buf, " bytes");
if(bytes--) {
- int index=bytes-buf;
+ int in=bytes-buf;
/* this is a hint there is size information in there! ;-) */
- while(--index) {
+ while(--in) {
/* scan for the parenthesis and break there */
if('(' == *bytes)
break;
diff --git a/lib/url.c b/lib/url.c
index 0d07e686d..e6451f242 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -157,10 +157,10 @@ static bool safe_strequal(char* str1, char* str2);
extern sigjmp_buf curl_jmpenv;
#endif
static
-RETSIGTYPE alarmfunc(int signal)
+RETSIGTYPE alarmfunc(int sig)
{
/* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
- (void)signal;
+ (void)sig;
#ifdef HAVE_SIGSETJMP
siglongjmp(curl_jmpenv, 1);
#endif
@@ -2248,8 +2248,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
if(proxy && *proxy) {
/* we have a proxy here to set */
char *ptr;
- char user[MAX_CURL_USER_LENGTH];
- char passwd[MAX_CURL_PASSWORD_LENGTH];
+ char proxyuser[MAX_CURL_USER_LENGTH];
+ char proxypasswd[MAX_CURL_PASSWORD_LENGTH];
/* skip the possible protocol piece */
ptr=strstr(proxy, "://");
@@ -2262,16 +2262,16 @@ static CURLcode CreateConnection(struct SessionHandle *data,
ptr = strchr(ptr, '@');
if(ptr && (2 == sscanf(proxy, "%" MAX_CURL_USER_LENGTH_TXT"[^:]:"
"%" MAX_CURL_PASSWORD_LENGTH_TXT "[^@]",
- user, passwd))) {
+ proxyuser, proxypasswd))) {
/* found user and password, rip them out */
Curl_safefree(conn->proxyuser);
- conn->proxyuser = strdup(user);
+ conn->proxyuser = strdup(proxyuser);
if(!conn->proxyuser)
return CURLE_OUT_OF_MEMORY;
Curl_safefree(conn->proxypasswd);
- conn->proxypasswd = strdup(passwd);
+ conn->proxypasswd = strdup(proxypasswd);
if(!conn->proxypasswd)
return CURLE_OUT_OF_MEMORY;
diff --git a/lib/urldata.h b/lib/urldata.h
index 0ebff5687..b880ff631 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -454,29 +454,29 @@ struct connectdata {
/* These two functions MUST be set by the curl_connect() function to be
be protocol dependent */
- CURLcode (*curl_do)(struct connectdata *connect);
- CURLcode (*curl_done)(struct connectdata *connect);
+ CURLcode (*curl_do)(struct connectdata *);
+ CURLcode (*curl_done)(struct connectdata *);
/* If the curl_do() function is better made in two halves, this
* curl_do_more() function will be called afterwards, if set. For example
* for doing the FTP stuff after the PASV/PORT command.
*/
- CURLcode (*curl_do_more)(struct connectdata *connect);
+ CURLcode (*curl_do_more)(struct connectdata *);
/* This function *MAY* be set to a protocol-dependent function that is run
* after the connect() and everything is done, as a step in the connection.
*/
- CURLcode (*curl_connect)(struct connectdata *connect);
+ CURLcode (*curl_connect)(struct connectdata *);
/* This function *MAY* be set to a protocol-dependent function that is run
* by the curl_disconnect(), as a step in the disconnection.
*/
- CURLcode (*curl_disconnect)(struct connectdata *connect);
+ CURLcode (*curl_disconnect)(struct connectdata *);
/* This function *MAY* be set to a protocol-dependent function that is run
* in the curl_close() function if protocol-specific cleanups are required.
*/
- CURLcode (*curl_close)(struct connectdata *connect);
+ CURLcode (*curl_close)(struct connectdata *);
/**** curl_get() phase fields */