]> jfr.im git - solanum.git/blobdiff - src/newconf.c
Make the epoll check work more reliably.
[solanum.git] / src / newconf.c
index 84144e6a269f022c057879bf1e3b60c07852bf31..3cd3a54449ce52d017ff8d265be64b80c3324076 100644 (file)
@@ -85,7 +85,7 @@ add_top_conf(const char *name, int (*sfunc) (struct TopConf *),
 
        tc = MyMalloc(sizeof(struct TopConf));
 
-       DupString(tc->tc_name, name);
+       tc->tc_name = name;
        tc->tc_sfunc = sfunc;
        tc->tc_efunc = efunc;
        tc->tc_entries = items;
@@ -153,7 +153,6 @@ remove_top_conf(char *name)
                return -1;
 
        dlinkDestroy(ptr, &conf_items);
-       MyFree(tc->tc_name);
        MyFree(tc);
 
        return 0;
@@ -537,7 +536,7 @@ conf_end_oper(struct TopConf *tc)
                        yy_tmpoper->rsa_pubkey =
                                (RSA *) PEM_read_bio_RSA_PUBKEY(file, NULL, 0, NULL);
 
-                       BIO_set_close(file, BIO_CLOSE);
+                       (void)BIO_set_close(file, BIO_CLOSE);
                        BIO_free(file);
 
                        if(yy_tmpoper->rsa_pubkey == NULL)
@@ -1619,7 +1618,7 @@ conf_end_alias(struct TopConf *tc)
        }
 
        if (!alias_dict)
-               alias_dict = irc_dictionary_create(alias_dict);
+               alias_dict = irc_dictionary_create(strcasecmp);
 
        irc_dictionary_add(alias_dict, yy_alias->name, yy_alias);
 
@@ -1849,7 +1848,7 @@ add_conf_item(const char *topconf, const char *name, int type, void (*func) (voi
 
        cf = MyMalloc(sizeof(struct ConfEntry));
 
-       DupString(cf->cf_name, name);
+       cf->cf_name = name;
        cf->cf_type = type;
        cf->cf_func = func;
        cf->cf_arg = NULL;