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;
return -1;
dlinkDestroy(ptr, &conf_items);
- MyFree(tc->tc_name);
MyFree(tc);
return 0;
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)
}
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);
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;