Index: /trunk/src/VBox/Main/webservice/vboxweb.cpp
===================================================================
--- /trunk/src/VBox/Main/webservice/vboxweb.cpp	(revision 48278)
+++ /trunk/src/VBox/Main/webservice/vboxweb.cpp	(revision 48279)
@@ -451,7 +451,7 @@
      * @param s Socket from soap_accept() which has work to do.
      */
-    uint32_t add(int s)
-    {
-        uint32_t cItems;
+    size_t add(SOCKET s)
+    {
+        size_t cItems;
         util::AutoWriteLock qlock(m_mutex COMMA_LOCKVAL_SRC_POS);
 
@@ -493,5 +493,5 @@
      * @return
      */
-    int get(size_t &cIdleThreads, size_t &cThreads)
+    SOCKET get(size_t &cIdleThreads, size_t &cThreads)
     {
         while (1)
@@ -503,5 +503,5 @@
             if (m_llSocketsQ.size())
             {
-                int socket = m_llSocketsQ.front();
+                SOCKET socket = m_llSocketsQ.front();
                 m_llSocketsQ.pop_front();
                 cIdleThreads = --m_cIdleThreads;
@@ -543,5 +543,5 @@
     // A std::list abused as a queue; this contains the actual jobs to do,
     // each int being a socket from soap_accept()
-    std::list<int>          m_llSocketsQ;
+    std::list<SOCKET>       m_llSocketsQ;
 };
 
@@ -732,5 +732,5 @@
 static unsigned long CRYPTO_id_function()
 {
-    return RTThreadNativeSelf();
+    return (unsigned long)RTThreadNativeSelf();
 }
 
@@ -856,5 +856,5 @@
             // avoid EADDRINUSE on bind()
 
-    int m, s; // master and slave sockets
+    SOCKET m, s; // master and slave sockets
     m = soap_bind(&soap,
                   g_pcszBindToHost ? g_pcszBindToHost : "localhost",    // safe default host
