X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_negotiate.c;h=d2410f88651a7d8014e9ad68560e6716a3983ef6;hp=ede406f9c2a96718801c8199f67a0426ce99cc4b;hb=8840a33028d28fa4f351b08b7502c1642c758af5;hpb=7493ad081ec06081cb8ca0f804d98a263f93ffbc diff --git a/php_http_negotiate.c b/php_http_negotiate.c index ede406f..d2410f8 100644 --- a/php_http_negotiate.c +++ b/php_http_negotiate.c @@ -12,7 +12,7 @@ #include "php_http_api.h" -static int php_http_negotiate_sort(const void *first, const void *second TSRMLS_DC) +static int php_http_negotiate_sort(const void *first, const void *second) { zval result; Bucket *b1 = (Bucket *) first, *b2 = (Bucket *) second; @@ -100,7 +100,7 @@ static int php_http_negotiate_reduce(zval *p, int num_args, va_list args, zend_h return ZEND_HASH_APPLY_KEEP; } -HashTable *php_http_negotiate(const char *value_str, size_t value_len, HashTable *supported, const char *primary_sep_str, size_t primary_sep_len TSRMLS_DC) +HashTable *php_http_negotiate(const char *value_str, size_t value_len, HashTable *supported, const char *primary_sep_str, size_t primary_sep_len) { HashTable *result = NULL; @@ -115,7 +115,7 @@ HashTable *php_http_negotiate(const char *value_str, size_t value_len, HashTable php_http_params_opts_default_get(&opts); opts.input.str = estrndup(value_str, value_len); opts.input.len = value_len; - php_http_params_parse(¶ms, &opts TSRMLS_CC); + php_http_params_parse(¶ms, &opts); efree(opts.input.str); array_init(&arr);