Mercurial > hg > nnchat
changeset 459:75ed7be2cfe8
Rename compareUsername() to str_compare().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 05:45:11 +0300 |
parents | 6eef0dc83f0a |
children | c956af023014 |
files | main.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sat May 26 05:33:06 2012 +0300 +++ b/main.c Sat May 26 05:45:11 2012 +0300 @@ -231,9 +231,9 @@ return buf; } -int compareUsername(const void *s1, const void *s2) +int str_compare(const void *s1, const void *s2) { - return th_strcasecmp((char *) s1, (char *) s2); + return th_strcasecmp((const char *) s1, (const char *) s2); } nn_window_t *nnwin_find(const char *id) @@ -950,7 +950,7 @@ if (name[0]) { // Add or remove someone to/from ignore - qlist_t *user = th_llist_find_func(setIgnoreList, name, compareUsername); + qlist_t *user = th_llist_find_func(setIgnoreList, name, str_compare); if (user != NULL) { printMsgQ(currWin, "Removed user '%s' from ignore.\n", name);