diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-15 19:12:48 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-15 19:12:48 +0800 |
commit | bee0621d20c4ff0ad165be128e1ab8c5b33168d7 (patch) | |
tree | 116cbfaddf3c7a30c2a0c1a2d1e6773cb3a55718 /mbbsd/record.c | |
parent | 7cb42a94fb0aa1c3fe242699a2bec79efe04f7e1 (diff) | |
download | pttbbs-bee0621d20c4ff0ad165be128e1ab8c5b33168d7.tar pttbbs-bee0621d20c4ff0ad165be128e1ab8c5b33168d7.tar.gz pttbbs-bee0621d20c4ff0ad165be128e1ab8c5b33168d7.tar.bz2 pttbbs-bee0621d20c4ff0ad165be128e1ab8c5b33168d7.tar.lz pttbbs-bee0621d20c4ff0ad165be128e1ab8c5b33168d7.tar.xz pttbbs-bee0621d20c4ff0ad165be128e1ab8c5b33168d7.tar.zst pttbbs-bee0621d20c4ff0ad165be128e1ab8c5b33168d7.zip |
fix compile error & warning free
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1766 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r-- | mbbsd/record.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) |