Fix for size_t related warnings.

(cherry picked from commit fcb5e7c438)
This commit is contained in:
Stefan Sommerfeld
2010-11-07 15:16:33 -02:00
committed by Marcelo Roberto Jimenez
parent d4358a82c5
commit 51bf17911a
6 changed files with 47 additions and 45 deletions

View File

@@ -928,7 +928,7 @@ int StopMiniServer()
SOCKET sock;
struct sockaddr_in ssdpAddr;
char buf[256] = "ShutDown";
int bufLen = strlen(buf);
size_t bufLen = strlen(buf);
if(gMServState == MSERV_RUNNING) {
gMServState = MSERV_STOPPING;
@@ -947,8 +947,8 @@ int StopMiniServer()
ssdpAddr.sin_family = AF_INET;
ssdpAddr.sin_addr.s_addr = inet_addr("127.0.0.1");
ssdpAddr.sin_port = htons(miniStopSockPort);
sendto(sock, buf, bufLen, 0, (struct sockaddr *)&ssdpAddr,
socklen);
sendto(sock, buf, (int)bufLen, 0,
(struct sockaddr *)&ssdpAddr, socklen);
usleep(1000);
if (gMServState == MSERV_IDLE) {
break;