From a9ab0dab6e86c98cfb4fb80db1ba56d51a3c0daa Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 9 Mar 2005 02:54:02 +0000 Subject: fix alignment and permission problems when USE_HUGETLB. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2583 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/cache.c b/mbbsd/cache.c index d32d7f15..8ad9f2e8 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -68,7 +68,7 @@ attach_shm(int shmkey, int shmsize) void attach_SHM(void) { - SHM = attach_shm(SHM_KEY, sizeof(SHM_t)); + SHM = attach_shm(SHM_KEY, SHMSIZE); if(SHM->version != SHM_VERSION) { fprintf(stderr, "Error: SHM->version(%d) != SHM_VERSION(%d)\n", SHM->version, SHM_VERSION); fprintf(stderr, "Please use the source code version corresponding to SHM,\n" -- cgit v1.2.3