diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 00:53:10 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 00:53:10 +0000 |
commit | ce2af47d41cc790df1b18d9e80295a38747de19f (patch) | |
tree | b9e75709ec7e75dada1c77a3ea70f1304091cae9 /plugins/FTPFileYM | |
parent | a5574d24bc8c0e94c8880c75f0fd27d08d30b98b (diff) |
code cleanup, x64 fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11163 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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, |