comparison mcabber/mcabber/compl.c @ 1852:057b514b1f12

Fix 3 minor warnings
author Mikael Berthe <mikael@lilotux.net>
date Thu, 01 Apr 2010 21:12:56 +0200
parents 8d7810f529db
children 4ba68ad737bc
comparison
equal deleted inserted replaced
1851:95b4373a57a4 1852:057b514b1f12
118 gchar *compval; 118 gchar *compval;
119 if (suffix) 119 if (suffix)
120 compval = g_strdup_printf("%s%s", word+len, suffix); 120 compval = g_strdup_printf("%s%s", word+len, suffix);
121 else 121 else
122 compval = g_strdup(word+len); 122 compval = g_strdup(word+len);
123 c->list = g_slist_insert_sorted(c->list, compval, g_ascii_strcasecmp); 123 c->list = g_slist_insert_sorted(c->list, compval,
124 (GCompareFunc)g_ascii_strcasecmp);
124 } 125 }
125 } 126 }
126 } 127 }
127 c->next = c->list; 128 c->next = c->list;
128 InputCompl = c; 129 InputCompl = c;
208 nword = g_strdup_printf("%s ", word); 209 nword = g_strdup_printf("%s ", word);
209 } else { // word is fine 210 } else { // word is fine
210 nword = g_strdup(word); 211 nword = g_strdup(word);
211 } 212 }
212 213
213 if (g_slist_find_custom(cat->words, nword, g_strcmp0) != NULL) 214 if (g_slist_find_custom(cat->words, nword, (GCompareFunc)g_strcmp0) != NULL)
214 return; 215 return;
215 216
216 cat->words = g_slist_insert_sorted(cat->words, nword, g_ascii_strcasecmp); 217 cat->words = g_slist_insert_sorted(cat->words, nword,
218 (GCompareFunc)g_ascii_strcasecmp);
217 } 219 }
218 220
219 // compl_del_category_word(categ, command) 221 // compl_del_category_word(categ, command)
220 // Removes a keyword from category categ in completion list. 222 // Removes a keyword from category categ in completion list.
221 void compl_del_category_word(guint categ, const gchar *word) 223 void compl_del_category_word(guint categ, const gchar *word)