fixed Windows compiler warnings
authorVictor Kirhenshtein <victor@netxms.org>
Fri, 8 Sep 2017 15:34:50 +0000 (18:34 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Fri, 8 Sep 2017 15:34:50 +0000 (18:34 +0300)
src/agent/core/snmpproxy.cpp
src/libnetxms/tools.cpp

index df45d57..a070b57 100644 (file)
@@ -102,7 +102,7 @@ void CommSession::proxySnmpRequest(NXCPMessage *request)
                int nRetries;
                for(nRetries = 0; nRetries < 3; nRetries++)
                {
-                  if (send(hSocket, (char *)pduIn, sizeIn, 0) == (int)sizeIn)
+                  if (send(hSocket, (char *)pduIn, (int)sizeIn, 0) == (int)sizeIn)
                   {
                      s_snmpRequests++;
                      UINT32 dwSizeOut;
index 72d8ae4..71f0689 100644 (file)
@@ -2913,7 +2913,7 @@ bool LIBNETXMS_EXPORTABLE ReadPassword(const TCHAR *prompt, TCHAR *buffer, size_
 #endif
 
    /* Read the password. */
-   if (_fgetts(buffer, bufferSize, stdin) != NULL)
+   if (_fgetts(buffer, (int)bufferSize, stdin) != NULL)
    {
       TCHAR *nl = _tcschr(buffer, _T('\n'));
       if (nl != NULL)