ext/standard/crc32: Use zend_result return type and remove unused header

This commit is contained in:
Gina Peter Bnayard 2024-08-20 14:18:43 +02:00
parent 40217b2ea4
commit 775ca03eb8
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,6 @@
*/
#include "php.h"
#include "basic_functions.h"
#include "crc32.h"
#include "crc32_x86.h"
@ -129,7 +128,7 @@ PHPAPI uint32_t php_crc32_bulk_update(uint32_t crc, const char *p, size_t nr)
return crc;
}
PHPAPI int php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr)
PHPAPI zend_result php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr)
{
size_t handled = 0, n;
char buf[1024];

View file

@ -29,7 +29,7 @@
PHPAPI uint32_t php_crc32_bulk_update(uint32_t crc, const char *p, size_t nr);
/* Return FAILURE if stream reading fail */
PHPAPI int php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr);
PHPAPI zend_result php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr);
/* generated using the AUTODIN II polynomial
* x^32 + x^26 + x^23 + x^22 + x^16 +