Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5927d47

Browse files
committed
Change void * to Dllist*.
1 parent0bdd6d1 commit5927d47

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)

[8]ページ先頭

©2009-2025 Movatter.jp