Changeset 1901 for trunk/src/kmk/dir.c


Ignore:
Timestamp:
Oct 21, 2008, 5:12:16 AM (17 years ago)
Author:
bird
Message:

kmk: fix for file_cache <-> file_strcache confusion bug introduced earlier tonight.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir.c

    r1897 r1901  
    264264  ISTRING_HASH_1 (key->path_key, hash);
    265265# else  /* CONFIG_WITH_STRCACHE2 */
    266   hash = strcache2_get_ptr_hash (&file_cache, key->path_key);
     266  hash = strcache2_get_ptr_hash (&file_strcache, key->path_key);
    267267# endif /* CONFIG_WITH_STRCACHE2 */
    268268  hash ^= ((unsigned int) key->dev << 4) ^ (unsigned int) key->ctime;
     
    291291  ISTRING_HASH_2 (key->path_key, hash);
    292292# else  /* CONFIG_WITH_STRCACHE2 */
    293   hash = strcache2_get_hash1 (&file_cache, key->path_key);
     293  hash = strcache2_get_hash1 (&file_strcache, key->path_key);
    294294# endif /* CONFIG_WITH_STRCACHE2 */
    295295  hash ^= ((unsigned int) key->dev << 4) ^ (unsigned int) ~key->ctime;
     
    383383  return_ISTRING_HASH_1 (((const struct directory *) key)->name);
    384384#else
    385   return strcache2_get_ptr_hash (&file_cache, ((const struct directory *) key)->name);
     385  return strcache2_get_ptr_hash (&file_strcache, ((const struct directory *) key)->name);
    386386#endif
    387387}
     
    393393  return_ISTRING_HASH_2 (((const struct directory *) key)->name);
    394394#else
    395   return strcache2_get_hash1 (&file_cache, ((const struct directory *) key)->name);
     395  return strcache2_get_hash1 (&file_strcache, ((const struct directory *) key)->name);
    396396#endif
    397397}
     
    439439  return_ISTRING_HASH_1 (((struct dirfile const *) key)->name);
    440440#else
    441   return strcache2_get_ptr_hash (&file_cache, ((struct dirfile const *) key)->name);
     441  return strcache2_get_ptr_hash (&file_strcache, ((struct dirfile const *) key)->name);
    442442#endif
    443443}
     
    449449  return_ISTRING_HASH_2 (((struct dirfile const *) key)->name);
    450450#else
    451   return strcache2_get_hash1 (&file_cache, ((struct dirfile const *) key)->name);
     451  return strcache2_get_hash1 (&file_strcache, ((struct dirfile const *) key)->name);
    452452#endif
    453453}
Note: See TracChangeset for help on using the changeset viewer.