summaryrefslogtreecommitdiffstats
path: root/mbbsd/syspost.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r--mbbsd/syspost.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c
index 02b614d4..a1dfec38 100644
--- a/mbbsd/syspost.c
+++ b/mbbsd/syspost.c
@@ -2,16 +2,14 @@
#include "bbs.h"
int
-post_msg_fpath(const char* bname, const char* title, const char *msg, const char* author, char *fname)
+post_msg(const char* bname, const char* title, const char *msg, const char* author)
{
+ char fname[PATHLEN];
FILE *fp;
int bid;
fileheader_t fhdr;
char dirfn[PATHLEN];
- // fname should be lengthed in PATHLEN
- assert(fname);
-
/* 在 bname 板發表新文章 */
setbpath(fname, bname);
stampfile(fname, &fhdr);
@@ -37,13 +35,6 @@ post_msg_fpath(const char* bname, const char* title, const char *msg, const char
return 0;
}
-int
-post_msg(const char* bname, const char* title, const char *msg, const char* author)
-{
- char fname[PATHLEN];
- return post_msg_fpath(bname, title, msg, author, fname);
-}
-
int
post_file(const char *bname, const char *title, const char *filename, const char *author)
{