From 775ca03eb8c5f1f3dc3ca528206f7e6b5c0949fd Mon Sep 17 00:00:00 2001 From: Gina Peter Bnayard Date: Tue, 20 Aug 2024 14:18:43 +0200 Subject: [PATCH] ext/standard/crc32: Use zend_result return type and remove unused header --- ext/standard/crc32.c | 3 +-- ext/standard/crc32.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/standard/crc32.c b/ext/standard/crc32.c index d9ccd78feb5..e99c3ca9f5a 100644 --- a/ext/standard/crc32.c +++ b/ext/standard/crc32.c @@ -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]; diff --git a/ext/standard/crc32.h b/ext/standard/crc32.h index bdf45a4bef5..261acdeb1fe 100644 --- a/ext/standard/crc32.h +++ b/ext/standard/crc32.h @@ -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 +