Chameleon

Chameleon Commit Details

Date:2014-10-23 05:56:37 (5 years 7 months ago)
Author:Chuck Fry
Commit:2441
Parents: 2440
Message:Use u_int32_t instead of long where appropriate
Changes:
M/branches/chucko/i386/libsaio/cache.c

File differences

branches/chucko/i386/libsaio/cache.c
4343
4444
4545
46
46
4747
4848
4949
......
6666
6767
6868
69
69
7070
7171
7272
......
113113
114114
115115
116
116
117117
118118
119119
#define kCacheMaxEntries (kCacheSize / kCacheMinBlockSize)
static CICell gCacheIH;
static long gCacheBlockSize;
static u_int32_t gCacheBlockSize;
static long gCacheNumEntries;
static long gCacheTime;
gCacheIH = NULL;
}
void CacheInit( CICell ih, long blockSize )
void CacheInit( CICell ih, u_int32_t blockSize )
{
#ifdef __i386__
if ((ih == gCacheIH) && (blockSize == gCacheBlockSize))
bzero(gCacheEntries, kCacheMaxEntries * sizeof(CacheEntry));
}
long CacheRead(CICell ih, char * buffer, long long offset, long length, long cache)
u_int32_t CacheRead(CICell ih, char * buffer, long long offset, u_int32_t length, long cache)
{
long cnt, oldestEntry = 0, oldestTime, loadCache = 0;
CacheEntry *entry;

Archive Download the corresponding diff file

Revision: 2441