|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.8 1997/08/24 23:07:42 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.9 1997/08/26 14:05:47 momjian Exp $ |
11 | 11 | *
|
12 | 12 | * Notes:
|
13 | 13 | *XXX This needs to use exception.h to handle recovery when
|
@@ -663,9 +663,9 @@ InitSysCache(char *relname,
|
663 | 663 | * We could move this to dllist.c, but the way we do this is not
|
664 | 664 | * dynamic/portabl, so why allow other routines to use it.
|
665 | 665 | */
|
666 |
| -void*cache_begin=malloc((NCCBUCK+1)*sizeof(Dllist)); |
| 666 | +Dllist*cache_begin=malloc((NCCBUCK+1)*sizeof(Dllist)); |
667 | 667 | for (i=0;i <=NCCBUCK;++i) {
|
668 |
| -cp->cc_cache[i]=cache_begin+i*sizeof(Dllist); |
| 668 | +cp->cc_cache[i]=cache_begin[i]; |
669 | 669 | cp->cc_cache[i]->dll_head=0;
|
670 | 670 | cp->cc_cache[i]->dll_tail=0;
|
671 | 671 | }
|
|