Skip to content

Commit 775ca03

Browse files
committed
ext/standard/crc32: Use zend_result return type and remove unused header
1 parent 40217b2 commit 775ca03

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ext/standard/crc32.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
#include "php.h"
18-
#include "basic_functions.h"
1918
#include "crc32.h"
2019
#include "crc32_x86.h"
2120

@@ -129,7 +128,7 @@ PHPAPI uint32_t php_crc32_bulk_update(uint32_t crc, const char *p, size_t nr)
129128
return crc;
130129
}
131130

132-
PHPAPI int php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr)
131+
PHPAPI zend_result php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr)
133132
{
134133
size_t handled = 0, n;
135134
char buf[1024];

ext/standard/crc32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
PHPAPI uint32_t php_crc32_bulk_update(uint32_t crc, const char *p, size_t nr);
3030

3131
/* Return FAILURE if stream reading fail */
32-
PHPAPI int php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr);
32+
PHPAPI zend_result php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr);
3333

3434
/* generated using the AUTODIN II polynomial
3535
* x^32 + x^26 + x^23 + x^22 + x^16 +

0 commit comments

Comments
 (0)