diff options
-rw-r--r-- | include/proto.h | 1 | ||||
-rw-r--r-- | mbbsd/announce.c | 2 | ||||
-rw-r--r-- | mbbsd/indict.c | 2 | ||||
-rw-r--r-- | mbbsd/stuff.c | 9 |
4 files changed, 2 insertions, 12 deletions
diff --git a/include/proto.h b/include/proto.h index 4678b40a..738c9f0f 100644 --- a/include/proto.h +++ b/include/proto.h @@ -539,7 +539,6 @@ char *Cdate(time4_t *clock); void sethomefile(char *buf, const char *userid, const char *fname); int log_file(char *fn, int flag, const char *fmt,...); void str_lower(char *t, char *s); -void *strstr_lower(char *str, char *tag); int cursor_key(int row, int column); int search_num(int ch, int max); void setuserfile(char *buf, const char *fname); diff --git a/mbbsd/announce.c b/mbbsd/announce.c index aad29a92..2e74c9dd 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -113,7 +113,7 @@ a_searchtitle(menu_t * pm, int rev) pm->page = pos - pos % p_lines; a_loadname(pm); } - if (strstr_lower(pm->header[pos - pm->page].title, search_str)) + if (strcasestr(pm->header[pos - pm->page].title, search_str)) return pos; } while (pos != pm->now); return pm->now; diff --git a/mbbsd/indict.c b/mbbsd/indict.c index 317fb5b0..ba1d84e8 100644 --- a/mbbsd/indict.c +++ b/mbbsd/indict.c @@ -126,7 +126,7 @@ use_dict(char *dict,char *database) f = 1; } else f = 0; - if (strstr_lower(lang, word)) { + if (strcasestr(lang, word)) { if (f == 1) lang[65] = '['; outs(lang); diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 602c9b4b..c9f31e7d 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -138,15 +138,6 @@ str_lower(char *t, char *s) } while (ch); } -void * -strstr_lower(char *str, char *tag) -{ - char buf[STRLEN]; - - str_lower(buf, str); - return strstr(buf, tag); -} - /** * 移除字串 buf 後端多餘的空白。 * @param buf |