diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-02 13:31:52 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-02 13:31:52 (GMT) |
commit | 1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6 (patch) | |
tree | e6d1ed87ca626d0945df3ad76d9185e02f6aae7f /Source/CTest/Curl/telnet.c | |
parent | 7cefbad8dc4f6aa73781a98e758679b5c5dc4fbe (diff) | |
download | CMake-1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6.zip CMake-1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6.tar.gz CMake-1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6.tar.bz2 |
ERR: Remove warnings on Visual Studio 7
Diffstat (limited to 'Source/CTest/Curl/telnet.c')
-rw-r--r-- | Source/CTest/Curl/telnet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/Curl/telnet.c b/Source/CTest/Curl/telnet.c index 7772d5e..876d311 100644 --- a/Source/CTest/Curl/telnet.c +++ b/Source/CTest/Curl/telnet.c @@ -826,10 +826,10 @@ static void suboption(struct connectdata *conn) struct SessionHandle *data = conn->data; struct TELNET *tn = (struct TELNET *)conn->proto.telnet; - printsub(data, '<', (unsigned char *)tn->subbuffer, SB_LEN(tn)+2); + printsub(data, '<', (unsigned char *)tn->subbuffer, (int)SB_LEN(tn)+2); switch (subchar = (unsigned char)SB_GET(tn)) { case TELOPT_TTYPE: - len = strlen(tn->subopt_ttype) + 4 + 2; + len = (int)strlen(tn->subopt_ttype) + 4 + 2; snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE, TELQUAL_IS, tn->subopt_ttype, IAC, SE); @@ -837,7 +837,7 @@ static void suboption(struct connectdata *conn) printsub(data, '>', &temp[2], len-2); break; case TELOPT_XDISPLOC: - len = strlen(tn->subopt_xdisploc) + 4 + 2; + len = (int)strlen(tn->subopt_xdisploc) + 4 + 2; snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, TELOPT_XDISPLOC, TELQUAL_IS, tn->subopt_xdisploc, IAC, SE); @@ -850,7 +850,7 @@ static void suboption(struct connectdata *conn) len = 4; for(v = tn->telnet_vars;v;v = v->next) { - tmplen = (strlen(v->data) + 1); + tmplen = (int)(strlen(v->data) + 1); /* Add the variable only if it fits */ if(len + tmplen < (int)sizeof(temp)-6) { sscanf(v->data, "%127[^,],%s", varname, varval); |