summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/proto.h7
-rw-r--r--mbbsd/board.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/include/proto.h b/include/proto.h
index 5e3d8f91..47f45517 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -1,4 +1,4 @@
-/* $Id: proto.h,v 1.24 2002/07/04 19:46:14 in2 Exp $ */
+/* $Id: proto.h,v 1.25 2002/08/06 09:02:59 in2 Exp $ */
#ifndef INCLUDE_PROTO_H
#define INCLUDE_PROTO_H
@@ -117,6 +117,11 @@ int get_fileheader_cache(int bid, char *direct, fileheader_t *headers,
int recbase, int nlines);
void *attach_shm(int shmkey, int shmsize);
void attach_SHM(void);
+#ifdef OUTTA_CACHE
+void outta_swapout(void **ptr, int length, char cacheid);
+void outta_swapin(void **ptr, int length, char cacheid);
+#endif
+
/* cal */
int give_tax(int money);
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 9f20b645..7001f730 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.47 2002/08/06 08:58:25 in2 Exp $ */
+/* $Id: board.c,v 1.48 2002/08/06 09:03:02 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -1018,11 +1018,11 @@ choose_board(int newflag)
if (!(ptr->myattr & BRD_ZAP))
zapbuf[ptr->bid - 1] = now;
#ifdef OUTTA_CACHE
- outta_swapout(&nbrd, nbrdlength, 'b');
+ outta_swapout((void **)&nbrd, nbrdlength, 'b');
#endif
Read();
#ifdef OUTTA_CACHE
- outta_swapin(&nbrd, nbrdlength, 'b');
+ outta_swapin((void **)&nbrd, nbrdlength, 'b');
ptr = &nbrd[num];
#endif
check_newpost(ptr);