From bee0621d20c4ff0ad165be128e1ab8c5b33168d7 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 15 Apr 2004 11:12:48 +0000 Subject: fix compile error & warning free git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1766 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/record.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mbbsd/record.c') diff --git a/mbbsd/record.c b/mbbsd/record.c index b11325d0..605f5417 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -128,6 +128,7 @@ substitute_record(char *fpath, void *rptr, int size, int id) } /* rocker.011022: 避免lock檔開啟時不正常斷線,造成永久lock */ +#ifndef _BBS_UTIL_C_ static int force_open(char *fname) { @@ -143,7 +144,7 @@ force_open(char *fname) return fd; } - +#endif /* new/old/lock file processing */ typedef struct nol_t { @@ -152,6 +153,7 @@ typedef struct nol_t { char lockfn[256]; } nol_t; +#ifndef _BBS_UTIL_C_ static void nolfilename(nol_t * n, char *fpath) { @@ -159,6 +161,7 @@ nolfilename(nol_t * n, char *fpath) snprintf(n->oldfn, sizeof(n->oldfn), "%s.old", fpath); snprintf(n->lockfn, sizeof(n->lockfn), "%s.lock", fpath); } +#endif int delete_records(char fpath[], int size, int id, int num) -- cgit v1.2.3