Skip to content

Commit 68702b7

Browse files
committed
Voidify php_com_persist_minit()
1 parent bc8703d commit 68702b7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ext/com_dotnet/com_persist.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ static zend_object* helper_new(zend_class_entry *ce)
714714
return &helper->std;
715715
}
716716

717-
int php_com_persist_minit(INIT_FUNC_ARGS)
717+
void php_com_persist_minit(INIT_FUNC_ARGS)
718718
{
719719
memcpy(&helper_handlers, &std_object_handlers, sizeof(helper_handlers));
720720
helper_handlers.free_obj = helper_free_storage;
@@ -725,6 +725,4 @@ int php_com_persist_minit(INIT_FUNC_ARGS)
725725

726726
le_istream = zend_register_list_destructors_ex(istream_dtor,
727727
NULL, "com_dotnet_istream_wrapper", module_number);
728-
729-
return SUCCESS;
730728
}

ext/com_dotnet/php_com_dotnet_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ PHP_COM_DOTNET_API IDispatch *php_com_wrapper_export_as_sink(zval *val, GUID *si
107107
PHP_COM_DOTNET_API IDispatch *php_com_wrapper_export(zval *val);
108108

109109
/* com_persist.c */
110-
int php_com_persist_minit(INIT_FUNC_ARGS);
110+
void php_com_persist_minit(INIT_FUNC_ARGS);
111111

112112
/* com_variant.c */
113113
PHP_METHOD(variant, __construct);

0 commit comments

Comments
 (0)