Skip to content

Commit c50a715

Browse files
committed
streams: remove useless casts
1 parent 0d0f774 commit c50a715

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/streamsfuncs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,9 @@ PHP_FUNCTION(stream_get_meta_data)
529529
add_assoc_zval(return_value, "wrapper_data", &stream->wrapperdata);
530530
}
531531
if (stream->wrapper) {
532-
add_assoc_string(return_value, "wrapper_type", (char *)stream->wrapper->wops->label);
532+
add_assoc_string(return_value, "wrapper_type", stream->wrapper->wops->label);
533533
}
534-
add_assoc_string(return_value, "stream_type", (char *)stream->ops->label);
534+
add_assoc_string(return_value, "stream_type", stream->ops->label);
535535

536536
add_assoc_string(return_value, "mode", stream->mode);
537537

@@ -543,7 +543,7 @@ PHP_FUNCTION(stream_get_meta_data)
543543
array_init(newval);
544544

545545
for (filter = stream->filterhead; filter != NULL; filter = filter->next) {
546-
add_next_index_string(newval, (char *)filter->fops->label);
546+
add_next_index_string(newval, filter->fops->label);
547547
}
548548

549549
add_assoc_zval(return_value, "filters", newval);

0 commit comments

Comments
 (0)