From 5c8bb43b13925613c4c35b7483c421cc1abe62a0 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 7 Jun 2009 15:42:50 +0000 Subject: * remove post_msg_fpath(), no longer used. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4516 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 1 - mbbsd/syspost.c | 13 ++----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/include/proto.h b/include/proto.h index 8add528e..e0825f08 100644 --- a/include/proto.h +++ b/include/proto.h @@ -594,7 +594,6 @@ void wait_penalty(int sec); /* syspost */ int post_msg(const char* bname, const char* title, const char *msg, const char* author); -int post_msg_fpath(const char* bname, const char* title, const char *msg, const char* author, char *fpath); // return filename in fpath int post_file(const char *bname, const char *title, const char *filename, const char *author); void post_newboard(const char *bgroup, const char *bname, const char *bms); void post_violatelaw(const char *crime, const char *police, const char *reason, const char *result); 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) { -- cgit v1.2.3