1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 03:26:46 +02:00

replace name_compare with lib function

This commit is contained in:
Jfreegman
2013-12-08 01:18:10 -05:00
parent b8b032e441
commit e834821348
4 changed files with 7 additions and 22 deletions

View File

@ -28,7 +28,7 @@ static int friendlist_index[MAX_FRIENDS_NUM] = {0};
static int index_name_cmp(const void *n1, const void *n2)
{
int res = name_compare(friends[*(int *) n1].name, friends[*(int *) n2].name);
int res = qsort_strcasecmp_hlpr(friends[*(int *) n1].name, friends[*(int *) n2].name);
int k = 100;
/* Use weight to make qsort always put online friends before offline */