summaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-26 01:47:21 +0000
committerYang Tse <yangsita@gmail.com>2010-02-26 01:47:21 +0000
commit87428e07ca17a99fb2409ec39213b7badbe967ea (patch)
tree00f5855b4b23cd0b03bb3bcf8365f72747ea09ba /lib/cookie.c
parent01fb0d8497af5465b4213fb5a6eddeab351ba8ec (diff)
downloadcurl-87428e07ca17a99fb2409ec39213b7badbe967ea.tar.gz
fix compiler warning
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
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 ;
}
/*****************************************************************************