summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/bbs.c4
-rw-r--r--pttbbs/mbbsd/comments.c1
-rw-r--r--pttbbs/mbbsd/psb.c7
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) {