From 96f4b17ba03fd229f97ec37b7e9e928a87217a55 Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 12 Apr 2004 12:50:50 +0000 Subject: fix for util git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1742 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/record.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'mbbsd') 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]; -- cgit v1.2.3