From 87428e07ca17a99fb2409ec39213b7badbe967ea Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 26 Feb 2010 01:47:21 +0000 Subject: fix compiler warning --- lib/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/cookie.c') diff --git a/lib/cookie.c b/lib/cookie.c index ca08d5fb2..cbf513d05 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -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 ; } /***************************************************************************** -- cgit v1.2.3