mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/standard/crc32: Use zend_result return type and remove unused header
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user