diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-12 20:50:50 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-12 20:50:50 +0800 |
commit | 96f4b17ba03fd229f97ec37b7e9e928a87217a55 (patch) | |
tree | a62d48780ac6a3a5083acd9b82f2d57853ea99ff /mbbsd | |
parent | 7e0a90828b64bd422f54ac2e6eb15eb4f4749e3a (diff) | |
download | pttbbs-96f4b17ba03fd229f97ec37b7e9e928a87217a55.tar pttbbs-96f4b17ba03fd229f97ec37b7e9e928a87217a55.tar.gz pttbbs-96f4b17ba03fd229f97ec37b7e9e928a87217a55.tar.bz2 pttbbs-96f4b17ba03fd229f97ec37b7e9e928a87217a55.tar.lz pttbbs-96f4b17ba03fd229f97ec37b7e9e928a87217a55.tar.xz pttbbs-96f4b17ba03fd229f97ec37b7e9e928a87217a55.tar.zst pttbbs-96f4b17ba03fd229f97ec37b7e9e928a87217a55.zip |
fix for util
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1742 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/record.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c index 994c8b09..28d39195 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -1,4 +1,5 @@ /* $Id$ */ + #include "bbs.h" #undef HAVE_MMAP @@ -144,7 +145,6 @@ force_open(char *fname) } -#if !defined(_BBS_UTIL_C_) /* new/old/lock file processing */ typedef struct nol_t { char newfn[256]; @@ -211,19 +211,7 @@ int delete_record(char fpath[], int size, int id) } -static char * -title_body(char *title) -{ - if (!strncasecmp(title, str_reply, 3)) { - title += 3; - if (*title == ' ') - title++; - } - return title; -} - -#endif - +#ifndef _BBS_UTIL_C_ #ifdef SAFE_ARTICLE_DELETE void safe_delete_range(char *fpath, int id1, int id2) { @@ -326,7 +314,7 @@ delete_range(char *fpath, int id1, int id2) close(fd); return 0; } - +#endif int search_rec(char *dirname, int (*filecheck) ()) { @@ -397,7 +385,7 @@ safe_article_delete_range(char *direct, int from, int to) } -#endif /* !defined(_BBS_UTIL_C_) */ +#endif int apply_record(char *fpath, int (*fptr) (), int size){ char abuf[BUFSIZE]; |