]> jfr.im git - solanum.git/blobdiff - ircd/cache.c
Resolve shfit/reduce conflict in timespec production (#54)
[solanum.git] / ircd / cache.c
index b5581f520f3a7bf6c2a113686e24e927bd26da41..c720e0abdd96c542ee24e398090be45bb2541891 100644 (file)
@@ -68,8 +68,8 @@ init_cache(void)
        oper_motd = cache_file(ircd_paths[IRCD_PATH_IRCD_OMOTD], "opers.motd", 0);
        memset(&links_cache_list, 0, sizeof(links_cache_list));
 
-       help_dict_oper = rb_dictionary_create("oper help", strcasecmp);
-       help_dict_user = rb_dictionary_create("user help", strcasecmp);
+       help_dict_oper = rb_dictionary_create("oper help", rb_strcasecmp);
+       help_dict_user = rb_dictionary_create("user help", rb_strcasecmp);
 }
 
 /*
@@ -217,6 +217,10 @@ free_cachefile(struct cachefile *cacheptr)
                        rb_free(line->data);
                        rb_free(line);
                }
+               else
+               {
+                       rb_free_rb_dlink_node(ptr);
+               }
        }
 
        rb_free(cacheptr);