diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/read.c | 3 | ||||
-rw-r--r-- | mbbsd/stuff.c | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index eb58e360..9e1dbb14 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -1,6 +1,5 @@ /* $Id$ */ #include "bbs.h" -#include "fnv_hash.h" static int headers_size; static fileheader_t *headers = NULL; @@ -221,7 +220,7 @@ getkeep(const char *s, int def_topline, int def_cursline) static struct keepsome preserv_keepblock; static struct keepsome *keeplist = &preserv_keepblock; struct keeploc_t *p; - unsigned int key=fnv1a_32_str(s, FNV1_32_INIT); + unsigned key=DBCS_StringHash(s); int i; if (def_cursline >= 0) { diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 4e5fd8cb..19049c8b 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -961,6 +961,12 @@ StringHash(const char *s) return fnv1a_32_strcase(s, FNV1_32_INIT); } +unsigned +DBCS_StringHash(const char *s) +{ + return fnv1a_32_dbcs_strcase(s, FNV1_32_INIT); +} + inline int *intbsearch(int key, const int *base0, int nmemb) { /* §ï¦Û /usr/src/lib/libc/stdlib/bsearch.c , |