* ハッシュ表のサイズ
*/
enum {
- CMDTABSIZE = 39,
+ CMDTABSIZE = 41,
};
/**
if(hash == HASH_CMDTYPE) {
hashval = hash_cmdtype(comet2cmd[i].name, comet2cmd[i].type);
} else if(hash == HASH_CODE) {
- hashval = hash_code((&comet2cmd[i])->code);
+ hashval = hash_code(comet2cmd[i].code);
}
p->next = cmdtab[hash][hashval];
cmdtab[hash][hashval] = p;
for(i = 0; i < CMDTABSIZE; i++) {
for(p = cmdtab[hash][i]; p != NULL; p = q) {
q = p->next;
- cmdtab[hash][i] = NULL;
FREE(p);
}
+ cmdtab[hash][i] = NULL;
}
}