Skip to content

Commit 5927d47

Browse files
committed
Change void * to Dllist*.
1 parent 0bdd6d1 commit 5927d47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/cache/catcache.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* 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 $
1111
*
1212
* Notes:
1313
* XXX This needs to use exception.h to handle recovery when
@@ -663,9 +663,9 @@ InitSysCache(char *relname,
663663
* We could move this to dllist.c, but the way we do this is not
664664
* dynamic/portabl, so why allow other routines to use it.
665665
*/
666-
void *cache_begin = malloc((NCCBUCK+1)*sizeof(Dllist));
666+
Dllist *cache_begin = malloc((NCCBUCK+1)*sizeof(Dllist));
667667
for (i = 0; i <= NCCBUCK; ++i) {
668-
cp->cc_cache[i] = cache_begin + i * sizeof(Dllist);
668+
cp->cc_cache[i] = cache_begin[i];
669669
cp->cc_cache[i]->dll_head = 0;
670670
cp->cc_cache[i]->dll_tail = 0;
671671
}

0 commit comments

Comments
 (0)