summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-16 08:26:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-16 08:26:22 +0800
commit88c522418f718bfaa9154b306248b030bfaacfc2 (patch)
treec1a55cdc25e910ff1f3b9edd71ca9e522442ade2
parente0eaf617dd1be01eaa67430d21326af2b247c1b2 (diff)
downloadpttbbs-88c522418f718bfaa9154b306248b030bfaacfc2.tar
pttbbs-88c522418f718bfaa9154b306248b030bfaacfc2.tar.gz
pttbbs-88c522418f718bfaa9154b306248b030bfaacfc2.tar.bz2
pttbbs-88c522418f718bfaa9154b306248b030bfaacfc2.tar.lz
pttbbs-88c522418f718bfaa9154b306248b030bfaacfc2.tar.xz
pttbbs-88c522418f718bfaa9154b306248b030bfaacfc2.tar.zst
pttbbs-88c522418f718bfaa9154b306248b030bfaacfc2.zip
* fix prototype change of decode API
* note: should we ignore USE_ICONV and always apply conversion? git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4746 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/bbsmail.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/util/bbsmail.c b/util/bbsmail.c
index 1b4de0ee..c508754f 100644
--- a/util/bbsmail.c
+++ b/util/bbsmail.c
@@ -37,10 +37,6 @@ mailog(msg)
}
}
-#ifdef USE_ICONV
-void str_decode_M3(unsigned char *str);
-#endif
-
static const char *
bbsmail_pretty_subject(const char *subject)
{
@@ -116,7 +112,7 @@ int mail2bbs(char *userid)
if( strncmp(genbuf, "Subject: ", 9) == 0 ){
strlcpy(title, genbuf + 9, sizeof(title));
#ifdef USE_ICONV
- str_decode_M3((unsigned char*)title);
+ str_decode_M3(title);
#endif
continue;
}