mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/standard/crc32: Use zend_result return type and remove unused header
This commit is contained in:
parent
40217b2ea4
commit
775ca03eb8
2 changed files with 2 additions and 3 deletions
|
@ -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 +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue