summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/record.c5
-rw-r--r--mbbsd/user.c2
2 files changed, 5 insertions, 2 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)
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 6245ef42..cd7f3b66 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -630,7 +630,7 @@ uinfo_query(userec_t * u, int real, int unum)
"標題: [公安報告] 站長修改金錢報告\n"
"時間: %s\n"
" 站長\033[1;32m%s\033[m把\033[1;32m%s\033[m"
- "的錢從\033[1;35m%ld\033[m改成\033[1;35m%d\033[m",
+ "的錢從\033[1;35m%d\033[m改成\033[1;35m%d\033[m",
ctime(&now), cuser->userid, x.userid, money, x.money);
clrtobot();