diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-05-22 11:58:06 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-05-22 11:58:06 +0800 |
commit | 4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2 (patch) | |
tree | 948059cd582a065feab489034dab719faa43d07c | |
parent | 8bc2127b949562a9ccf7c0259cf6ec1b68414ca1 (diff) | |
download | pttbbs-4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2.tar pttbbs-4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2.tar.gz pttbbs-4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2.tar.bz2 pttbbs-4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2.tar.lz pttbbs-4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2.tar.xz pttbbs-4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2.tar.zst pttbbs-4c09ee44c6bf4bc78aa04efc34ebe2555b16c8c2.zip |
Clean up.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6005 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 4 | ||||
-rw-r--r-- | pttbbs/mbbsd/comments.c | 1 | ||||
-rw-r--r-- | pttbbs/mbbsd/psb.c | 7 |
3 files changed, 4 insertions, 8 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 03f7b3cc..18dab03c 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -2808,10 +2808,6 @@ recommend(int ent, fileheader_t * fhdr, const char *direct) ANSI_COLOR(1;33), ANSI_COLOR(1;31), ANSI_COLOR(1;37), - }, *ctype_attr2[RECTYPE_SIZE] = { - ANSI_COLOR(1;37), - ANSI_COLOR(1;31), - ANSI_COLOR(1;31), }, *ctype_long[RECTYPE_SIZE] = { "值得推薦", "給它噓聲", diff --git a/pttbbs/mbbsd/comments.c b/pttbbs/mbbsd/comments.c index 83f4f6bb..80cc4f60 100644 --- a/pttbbs/mbbsd/comments.c +++ b/pttbbs/mbbsd/comments.c @@ -26,6 +26,7 @@ void FormatCommentString(char *buf, size_t szbuf, int type, static const char *ctype[RECTYPE_SIZE] = { "推", "噓", "→", }; + // Note attr2 is slightly different from ctype_attr in bbs.c#recommend static const char *ctype_attr2[RECTYPE_SIZE] = { ANSI_COLOR(1;37), ANSI_COLOR(1;31), diff --git a/pttbbs/mbbsd/psb.c b/pttbbs/mbbsd/psb.c index 910ae8ab..dd2274fa 100644 --- a/pttbbs/mbbsd/psb.c +++ b/pttbbs/mbbsd/psb.c @@ -63,7 +63,7 @@ psb_default_renderer(int i, int curr, int total, int rows GCC_UNUSED, void *ctx } static int -psb_default_cursor(int y, int curr GCC_UNUSED, void * ctx GCC_UNUSED) { +psb_default_cursor(int y GCC_UNUSED, int curr GCC_UNUSED, void * ctx GCC_UNUSED) { #ifdef USE_PFTERM if (HasUserFlag(UF_CURSOR_ASCII)) outs(STR_CURSOR "\b"); @@ -681,9 +681,9 @@ pvcm_footer(void *ctx GCC_UNUSED) { } static int -pvcm_renderer(int i, int curr, int total, int rows GCC_UNUSED, void *ctx) { +pvcm_renderer(int i, int curr, int total GCC_UNUSED, int rows GCC_UNUSED, void *ctx) { pvcm_ctx *cx = (pvcm_ctx*) ctx; - CommentBodyReq *resp = CommentsRead(cx->cmctx, i); + const CommentBodyReq *resp = CommentsRead(cx->cmctx, i); if (!resp) return 0; if (resp->type < 0) { @@ -698,7 +698,6 @@ pvcm_renderer(int i, int curr, int total, int rows GCC_UNUSED, void *ctx) { static int pvcm_input_processor(int key, int curr, int total GCC_UNUSED, int rows GCC_UNUSED, void *ctx) { - int result; pvcm_ctx *cx = (pvcm_ctx*) ctx; switch(key) { |