1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

main/streams/transports.c: remove useless cast (#19330)

The function pointer type declaration requires name to be a const char*
This commit is contained in:
Gina Peter Banyard
2025-07-31 12:44:58 +01:00
committed by GitHub
parent 049651dccc
commit 9db21e18ad

View File

@@ -130,7 +130,7 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, in
}
stream = (factory)(protocol, n,
(char*)name, namelen, persistent_id, options, flags, timeout,
name, namelen, persistent_id, options, flags, timeout,
context STREAMS_REL_CC);
if (stream) {