X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_encoding.c;h=3e57e2932e53233c99fa7fd408b724c4604a4f31;hp=4e25de30a73a160cb6864908b94744c6c180bdc3;hb=82923890d9ce44a0642ac2f5ea0cb343aaf50fe3;hpb=cd2f5afaff5794214ec3a784d48b9afce41764bf diff --git a/src/php_http_encoding.c b/src/php_http_encoding.c index 4e25de3..3e57e29 100644 --- a/src/php_http_encoding.c +++ b/src/php_http_encoding.c @@ -36,7 +36,7 @@ const char *php_http_encoding_dechunk(const char *encoded, size_t encoded_len, c *decoded = ecalloc(1, encoded_len + 1); while ((encoded + encoded_len - e_ptr) > 0) { - ulong chunk_len = 0, rest; + unsigned long chunk_len = 0, rest; chunk_len = strtoul(e_ptr, &n_ptr, 16); @@ -237,7 +237,7 @@ void php_http_encoding_stream_free(php_http_encoding_stream_t **s) struct dechunk_ctx { php_http_buffer_t buffer; - ulong hexlen; + unsigned long hexlen; unsigned zeroed:1; };