diff options
Diffstat (limited to 'plugins/FTPFileYM')
-rw-r--r-- | plugins/FTPFileYM/curl/lib/netrc.c | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/curl/lib/security.c | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/curl/lib/ssluse.c | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/curl/lib/telnet.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/plugins/FTPFileYM/curl/lib/netrc.c b/plugins/FTPFileYM/curl/lib/netrc.c index e35328a9ed..6ff92bb33f 100644 --- a/plugins/FTPFileYM/curl/lib/netrc.c +++ b/plugins/FTPFileYM/curl/lib/netrc.c @@ -106,7 +106,7 @@ int Curl_parsenetrc(const char *host, char *tok_buf; bool done=FALSE; char netrcbuffer[256]; - int netrcbuffsize = (int)sizeof(netrcbuffer); + int netrcbuffsize = sizeof(netrcbuffer); while(!done && fgets(netrcbuffer, netrcbuffsize, file)) { tok=strtok_r(netrcbuffer, " \t\n", &tok_buf); diff --git a/plugins/FTPFileYM/curl/lib/security.c b/plugins/FTPFileYM/curl/lib/security.c index 508c7b41ec..fa05207617 100644 --- a/plugins/FTPFileYM/curl/lib/security.c +++ b/plugins/FTPFileYM/curl/lib/security.c @@ -80,7 +80,7 @@ static enum protection_level name_to_level(const char *name) { int i; - for(i = 0; i < (int)sizeof(level_names)/(int)sizeof(level_names[0]); i++) + for(i = 0; i < sizeof(level_names)/sizeof(level_names[0]); i++) if(checkprefix(name, level_names[i].name)) return level_names[i].level; return PROT_NONE; diff --git a/plugins/FTPFileYM/curl/lib/ssluse.c b/plugins/FTPFileYM/curl/lib/ssluse.c index c747420f60..25ece337a1 100644 --- a/plugins/FTPFileYM/curl/lib/ssluse.c +++ b/plugins/FTPFileYM/curl/lib/ssluse.c @@ -933,7 +933,7 @@ int Curl_ossl_shutdown(struct connectdata *conn, int sockindex) (void)SSL_shutdown(connssl->handle); if(connssl->handle) { - buffsize = (int)sizeof(buf); + buffsize = sizeof(buf); while(!done) { int what = Curl_socket_ready(conn->sock[sockindex], CURL_SOCKET_BAD, SSL_SHUTDOWN_TIMEOUT); diff --git a/plugins/FTPFileYM/curl/lib/telnet.c b/plugins/FTPFileYM/curl/lib/telnet.c index 3206ee1137..366825078c 100644 --- a/plugins/FTPFileYM/curl/lib/telnet.c +++ b/plugins/FTPFileYM/curl/lib/telnet.c @@ -972,7 +972,7 @@ static void suboption(struct connectdata *conn) for(v = tn->telnet_vars;v;v = v->next) { tmplen = (strlen(v->data) + 1); /* Add the variable only if it fits */ - if(len + tmplen < (int)sizeof(temp)-6) { + if(len + tmplen < sizeof(temp)-6) { sscanf(v->data, "%127[^,],%127s", varname, varval); snprintf((char *)&temp[len], sizeof(temp) - len, "%c%s%c%s", CURL_NEW_ENV_VAR, varname, |