summaryrefslogtreecommitdiffstats
path: root/mbbsd/toolkit.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/toolkit.c')
-rw-r--r--mbbsd/toolkit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/toolkit.c b/mbbsd/toolkit.c
index 2955f040..9623c578 100644
--- a/mbbsd/toolkit.c
+++ b/mbbsd/toolkit.c
@@ -1,9 +1,11 @@
-/* $Id: toolkit.c,v 1.2 2002/06/04 13:08:34 in2 Exp $ */
+/* $Id: toolkit.c,v 1.3 2002/07/05 17:10:28 in2 Exp $ */
#include "bbs.h"
-unsigned StringHash(unsigned char *s) {
- unsigned int v=0;
- while(*s) {
+unsigned
+StringHash(unsigned char *s)
+{
+ unsigned int v = 0;
+ while (*s) {
v = (v << 8) | (v >> 24);
v ^= toupper(*s++); /* note this is case insensitive */
}