summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-10-01 11:36:54 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-10-01 11:36:54 +0800
commit9cfd1c185ce0d0e76780f6432c4324d965e2abf7 (patch)
treeb7d50c5edf0229099ec36744684852b8f813fdde
parent91ccf975bf2f1334e8da51befb2fd0f50727d83f (diff)
downloadpttbbs-9cfd1c185ce0d0e76780f6432c4324d965e2abf7.tar
pttbbs-9cfd1c185ce0d0e76780f6432c4324d965e2abf7.tar.gz
pttbbs-9cfd1c185ce0d0e76780f6432c4324d965e2abf7.tar.bz2
pttbbs-9cfd1c185ce0d0e76780f6432c4324d965e2abf7.tar.lz
pttbbs-9cfd1c185ce0d0e76780f6432c4324d965e2abf7.tar.xz
pttbbs-9cfd1c185ce0d0e76780f6432c4324d965e2abf7.tar.zst
pttbbs-9cfd1c185ce0d0e76780f6432c4324d965e2abf7.zip
strstr is char *, not const char *
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4407 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--common/sys/string.c2
-rw-r--r--include/cmsys.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/common/sys/string.c b/common/sys/string.c
index 02c5eb98..6f738939 100644
--- a/common/sys/string.c
+++ b/common/sys/string.c
@@ -348,7 +348,7 @@ int DBCS_Status(const char *dbcstr, int pos)
/**
* DBCS_strcasestr(pool, ptr): 在字串 pool 中尋找 ptr (只忽略英文大小寫)
*/
-const char *
+char *
DBCS_strcasestr(const char* pool, const char *ptr)
{
int i = 0, i2 = 0, found = 0,
diff --git a/include/cmsys.h b/include/cmsys.h
index 05454274..7dfd6e02 100644
--- a/include/cmsys.h
+++ b/include/cmsys.h
@@ -101,9 +101,9 @@ extern int is_number(const char *p);
extern char * qp_encode (char *s, size_t slen, const char *d, const char *tocode);
extern unsigned StringHash(const char *s);
/* DBCS utilities */
-extern int DBCS_RemoveIntrEscape(unsigned char *buf, int *len);
-extern int DBCS_Status(const char *dbcstr, int pos);
-extern const char* DBCS_strcasestr(const char* pool, const char *ptr);
+extern int DBCS_RemoveIntrEscape(unsigned char *buf, int *len);
+extern int DBCS_Status(const char *dbcstr, int pos);
+extern char * DBCS_strcasestr(const char* pool, const char *ptr);
/* time.c */
extern int is_leap_year(int year);