mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Change void * to Dllist*.
This commit is contained in:
6
src/backend/utils/cache/catcache.c
vendored
6
src/backend/utils/cache/catcache.c
vendored
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.8 1997/08/24 23:07:42 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.9 1997/08/26 14:05:47 momjian Exp $
|
||||||
*
|
*
|
||||||
* Notes:
|
* Notes:
|
||||||
* XXX This needs to use exception.h to handle recovery when
|
* XXX This needs to use exception.h to handle recovery when
|
||||||
@ -663,9 +663,9 @@ InitSysCache(char *relname,
|
|||||||
* We could move this to dllist.c, but the way we do this is not
|
* We could move this to dllist.c, but the way we do this is not
|
||||||
* dynamic/portabl, so why allow other routines to use it.
|
* dynamic/portabl, so why allow other routines to use it.
|
||||||
*/
|
*/
|
||||||
void *cache_begin = malloc((NCCBUCK+1)*sizeof(Dllist));
|
Dllist *cache_begin = malloc((NCCBUCK+1)*sizeof(Dllist));
|
||||||
for (i = 0; i <= NCCBUCK; ++i) {
|
for (i = 0; i <= NCCBUCK; ++i) {
|
||||||
cp->cc_cache[i] = cache_begin + i * sizeof(Dllist);
|
cp->cc_cache[i] = cache_begin[i];
|
||||||
cp->cc_cache[i]->dll_head = 0;
|
cp->cc_cache[i]->dll_head = 0;
|
||||||
cp->cc_cache[i]->dll_tail = 0;
|
cp->cc_cache[i]->dll_tail = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user