Skip to content

Commit 9db21e1

Browse files
authored
main/streams/transports.c: remove useless cast (#19330)
The function pointer type declaration requires name to be a const char*
1 parent 049651d commit 9db21e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/streams/transports.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, in
130130
}
131131

132132
stream = (factory)(protocol, n,
133-
(char*)name, namelen, persistent_id, options, flags, timeout,
133+
name, namelen, persistent_id, options, flags, timeout,
134134
context STREAMS_REL_CC);
135135

136136
if (stream) {

0 commit comments

Comments
 (0)