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

Diff for /pegasus/src/Pegasus/Common/HashTable.cpp between version 1.12 and 1.16

version 1.12, 2002/06/01 00:56:33 version 1.16, 2005/05/13 12:17:32
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 245 
Line 251 
     Uint32 hashCode,     Uint32 hashCode,
     const void* key) const     const void* key) const
 { {
   #ifdef PEGASUS_OS_VMS
   //
   // This is to prevent a crash when the hash
   //  code hasn't been initialized!
   //
       if (_numChains == 0)
       {
         return 0;
       }
   #endif
     Uint32 i = hashCode % _numChains;     Uint32 i = hashCode % _numChains;
  
     for (_BucketBase* bucket = _chains[i]; bucket; bucket = bucket->next)     for (_BucketBase* bucket = _chains[i]; bucket; bucket = bucket->next)


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.16

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2