projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b607ff
)
fixed ChanNode "fast access" array
author
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 02:22:00 +0000
(
04:22
+0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 02:22:00 +0000
(
04:22
+0200)
ChanNode.c
patch
|
blob
|
history
diff --git
a/ChanNode.c
b/ChanNode.c
index f7161aacee15632374be936bbfda69ffe211e32f..e4e59de01cb8ed2402d19d0f20bcac1b3d7b29f5 100644
(file)
--- a/
ChanNode.c
+++ b/
ChanNode.c
@@
-12,7
+12,7
@@
void init_ChanNode() {
---------------------------
= 47
*/
---------------------------
= 47
*/
-
userList = calloc(47, sizeof(*user
List));
+
chanList = calloc(47, sizeof(*chan
List));
}
int is_valid_chan(const char *name) {
}
int is_valid_chan(const char *name) {
@@
-53,7
+53,7
@@
static int get_chanlist_entry(int name) {
}
struct ChanNode* getChanByName(const char *name) { //case insensitive
}
struct ChanNode* getChanByName(const char *name) { //case insensitive
- int chanListIndex = get_chanlist_entry(
*name
);
+ int chanListIndex = get_chanlist_entry(
name[1]
);
if(chanListIndex == -1 || chanList[chanListIndex] == NULL)
return NULL;
struct ChanNode *chan;
if(chanListIndex == -1 || chanList[chanListIndex] == NULL)
return NULL;
struct ChanNode *chan;