1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

fix compiler warning

This commit is contained in:
Yang Tse 2010-02-26 01:47:21 +00:00
parent 01fb0d8497
commit 87428e07ca

View File

@ -784,7 +784,7 @@ static int cookie_sort(const void *p1, const void *p2)
size_t l1 = c1->path?strlen(c1->path):0;
size_t l2 = c2->path?strlen(c2->path):0;
return (int)(l2 - l1);
return (l2 > l1) ? 1 : (l2 < l1) ? -1 : 0 ;
}
/*****************************************************************************