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

Diff for /pegasus/src/Pegasus/Common/SystemWindows.cpp between version 1.39 and 1.40

version 1.39, 2004/07/08 00:44:59 version 1.40, 2004/07/19 08:46:23
Line 31 
Line 31 
 // //
 // Modified By: Dave Rosckes (rosckes@us.ibm.com) // Modified By: Dave Rosckes (rosckes@us.ibm.com)
 //              Terry Martin, Hewlett-Packard Company (terry.martin@hp.com) //              Terry Martin, Hewlett-Packard Company (terry.martin@hp.com)
   //              Amit K Arora, IBM (amita@in.ibm.com) for Bug#1428
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 190 
Line 191 
  
 String System::getFullyQualifiedHostName () String System::getFullyQualifiedHostName ()
 { {
     //      static char FQHostName[PEGASUS_MAXHOSTNAMELEN];
     //  ATTN: Implement this method to return the fully qualified host name  
     //      if (!*FQHostName)
       {
           String hostname = getHostName();
           struct hostent* hostEnt;
   
           hostEnt = gethostbyname((const char *)hostname.getCString());
           if (hostEnt == NULL)
           {
     return String::EMPTY;     return String::EMPTY;
 } }
           strcpy(FQHostName, hostEnt->h_name);
       }
   
       return FQHostName;
   }
  
 String System::getSystemCreationClassName () String System::getSystemCreationClassName ()
 { {


Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2