diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-01-20 16:22:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-01-20 16:22:51 +0000 |
commit | a719e16f7c504fd1d87a643d8cb91357a24ecf89 (patch) | |
tree | e434f05660389fad4db0d6deb9516a07d441535a /TSRM | |
parent | 65975bfc15a5acea12ee6ddb86ab3482c2279d04 (diff) | |
download | php-git-a719e16f7c504fd1d87a643d8cb91357a24ecf89.tar.gz |
CS
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index e590680e67..959cc7d76e 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -383,14 +383,15 @@ CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC) static inline unsigned long realpath_cache_key(const char *path, int path_len) { - register unsigned long h; - - const char *e = path + path_len; - for (h = 2166136261U; path < e; ) { - h *= 16777619; - h ^= *path++; - } - return h; + register unsigned long h; + const char *e = path + path_len; + + for (h = 2166136261U; path < e;) { + h *= 16777619; + h ^= *path++; + } + + return h; } static inline void realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, time_t t TSRMLS_DC) @@ -411,7 +412,7 @@ static inline void realpath_cache_add(const char *path, int path_len, const char n = bucket->key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0])); bucket->next = CWDG(realpath_cache)[n]; CWDG(realpath_cache)[n] = bucket; - CWDG(realpath_cache_size) += size; + CWDG(realpath_cache_size) += size; } } |