(file) Return to System.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/System.cpp between version 1.27 and 1.28

version 1.27, 2005/03/08 02:54:34 version 1.28, 2005/03/13 15:41:05
Line 174 
Line 174 
 #ifndef PEGASUS_OS_OS400 #ifndef PEGASUS_OS_OS400
     if ((phostent = ::gethostbyname(ccName)) != NULL)     if ((phostent = ::gethostbyname(ccName)) != NULL)
 #else #else
     if ((phostent = ::gethostbyname((const char *)hostName.getCString())) != NULL)      char ebcdicHost[PEGASUS_MAXHOSTNAMELEN];
       if (strlen(ccName) < PEGASUS_MAXHOSTNAMELEN)
           strcpy(ebcdicHost, ccName);
       else
           return ipAddress;
       AtoE(ebcdicHost);
       if ((phostent = ::gethostbyname(ebcdicHost)) != NULL)
 #endif #endif
     {     {
         ::memcpy( &inaddr, phostent->h_addr,4);         ::memcpy( &inaddr, phostent->h_addr,4);
Line 283 
Line 289 
 #ifndef PEGASUS_OS_OS400 #ifndef PEGASUS_OS_OS400
         entry = gethostbyaddr((const char *) &tmp_addr, sizeof(tmp_addr), AF_INET);         entry = gethostbyaddr((const char *) &tmp_addr, sizeof(tmp_addr), AF_INET);
 #else #else
                 entry = gethostbyaddr((const char *) &tmp_addr, sizeof(tmp_addr), AF_INET);                  entry = gethostbyaddr((char *) &tmp_addr, sizeof(tmp_addr), AF_INET);
 #endif #endif
                 if (entry == 0)                 if (entry == 0)
                 {                 {


Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2