X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_negotiate.c;h=cd09d3740f6dc8e293b72b3dbb742b096cca58ca;hb=fd7a7d76453ead2dfe292fb2f6cb0228ec360a67;hp=3a5548ea0de0b35d9b54e5d616d652a4e920da7d;hpb=e44e3ceb60817cfdd17945a3f6043816e134aa75;p=m6w6%2Fext-http diff --git a/src/php_http_negotiate.c b/src/php_http_negotiate.c index 3a5548e..cd09d37 100644 --- a/src/php_http_negotiate.c +++ b/src/php_http_negotiate.c @@ -16,8 +16,9 @@ # define PHP_HTTP_DEBUG_NEG 0 #endif -static int php_http_negotiate_sort(Bucket *b1, Bucket *b2) +static int php_http_negotiate_sort(const void *first, const void *second) { + Bucket *b1 = (Bucket *) first, *b2 = (Bucket *) second; int result = numeric_compare_function(&b1->val, &b2->val); return (result > 0 ? -1 : (result < 0 ? 1 : 0));