# HG changeset patch # User f1rmb # Date 1035810492 0 # Node ID 293bb1798e860b06d356b6445d7ad5dec2e92e26 # Parent b2801805c43341717dec5d987d0aa6558ee93dd5 Remove C++ism. diff -r b2801805c433 -r 293bb1798e86 read_cache.c --- a/read_cache.c Thu Oct 24 16:48:19 2002 +0000 +++ b/read_cache.c Mon Oct 28 13:08:12 2002 +0000 @@ -512,7 +512,8 @@ } if (use >= 0) { - + read_cache_chunk_t *chunk; + /* Increment read-ahead size if sector follows the last sector */ if (sector == (self->last_sector + 1)) { self->read_ahead_incr++; @@ -528,7 +529,7 @@ * self->chunk[*].usage_count */ pthread_mutex_lock(&self->lock); - read_cache_chunk_t *chunk = &self->chunk[use]; + chunk = &self->chunk[use]; read_ahead_buf = chunk->cache_buffer + chunk->cache_read_count * DVD_VIDEO_LB_LEN; *buf = chunk->cache_buffer + (sector - chunk->cache_start_sector) * DVD_VIDEO_LB_LEN; chunk->usage_count++;