several fixes to make irssi compile without warnings with MIPSpro

also fixed ctcp_queue_clean() - it might have crashed sometimes..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@859 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-23 21:40:07 +00:00 committed by cras
commit 8ce36c05ea
30 changed files with 80 additions and 72 deletions

View file

@ -203,7 +203,8 @@ char *config_node_get_str(CONFIG_NODE *parent, const char *key, const char *def)
if (parent == NULL) return (char *) def;
node = config_node_find(parent, key);
return (node == NULL || !has_node_value(node)) ? def : node->value;
return (char *) ((node != NULL && has_node_value(node)) ?
node->value : def);
}
int config_node_get_int(CONFIG_NODE *parent, const char *key, int def)