From 9cfd1c185ce0d0e76780f6432c4324d965e2abf7 Mon Sep 17 00:00:00 2001 From: wens Date: Wed, 1 Oct 2008 03:36:54 +0000 Subject: strstr is char *, not const char * git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4407 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/string.c | 2 +- include/cmsys.h | 6 +++--- 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); -- cgit v1.2.3