diff options
-rw-r--r-- | pttbbs/mbbsd/comments.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pttbbs/mbbsd/comments.c b/pttbbs/mbbsd/comments.c index 80cc4f60..1e6d1a59 100644 --- a/pttbbs/mbbsd/comments.c +++ b/pttbbs/mbbsd/comments.c @@ -1,15 +1,6 @@ #include "bbs.h" #include "daemons.h" -#ifdef USE_COMMENTD -/* Locally defined context. */ -typedef struct { - uint32_t allocated; - uint32_t loaded; - CommentKeyReq key; - CommentBodyReq *resp; -} CommentsCtx; - void FormatCommentString(char *buf, size_t szbuf, int type, const char *myid, int maxlength, const char *msg, const char *tail) @@ -41,6 +32,15 @@ void FormatCommentString(char *buf, size_t szbuf, int type, } +#ifdef USE_COMMENTD +/* Locally defined context. */ +typedef struct { + uint32_t allocated; + uint32_t loaded; + CommentKeyReq key; + CommentBodyReq *resp; +} CommentsCtx; + int CommentsAddRecord(const char *board, const char *file, int type, const char *msg) { |