windows build warning fixes

pull/1/head
toddouska 2013-06-17 12:26:21 -07:00
parent a1f25a9299
commit d02af46256
2 changed files with 4 additions and 4 deletions

View File

@ -2814,7 +2814,7 @@ static int MatchDomainName(const char* pattern, int len, const char* str)
if (len == 0) if (len == 0)
p = '\0'; p = '\0';
while ( (s = (char)(*str)) ) { while ( (s = (char)(*str)) != '\0') {
if (s == p) if (s == p)
break; break;
if (s == '.') if (s == '.')

View File

@ -2813,7 +2813,7 @@ int CyaSSL_SetServerID(CYASSL* ssl, const byte* id, int len, int newSession)
if (session == NULL) { if (session == NULL) {
CYASSL_MSG("Valid ServerID not cached already"); CYASSL_MSG("Valid ServerID not cached already");
ssl->session.idLen = min(SERVER_ID_LEN, (word32)len); ssl->session.idLen = (word16)min(SERVER_ID_LEN, (word32)len);
XMEMCPY(ssl->session.serverID, id, ssl->session.idLen); XMEMCPY(ssl->session.serverID, id, ssl->session.idLen);
} }
@ -4510,8 +4510,8 @@ int AddSession(CYASSL* ssl)
% SESSION_ROWS; % SESSION_ROWS;
clientIdx = ClientCache[clientRow].nextIdx++; clientIdx = ClientCache[clientRow].nextIdx++;
ClientCache[clientRow].Clients[clientIdx].serverRow = row; ClientCache[clientRow].Clients[clientIdx].serverRow = (word16)row;
ClientCache[clientRow].Clients[clientIdx].serverIdx = idx; ClientCache[clientRow].Clients[clientIdx].serverIdx = (word16)idx;
ClientCache[clientRow].totalCount++; ClientCache[clientRow].totalCount++;
if (ClientCache[clientRow].nextIdx == SESSIONS_PER_ROW) if (ClientCache[clientRow].nextIdx == SESSIONS_PER_ROW)