mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make lots of string pointers const
(#10646)
This allows using string literals without implicitly casting away the `const`.
This commit is contained in:
parent
373809c51b
commit
263b22f374
22 changed files with 39 additions and 40 deletions
|
@ -36,7 +36,7 @@ typedef struct {
|
|||
int shm_fd;
|
||||
} zend_shared_segment_posix;
|
||||
|
||||
static int create_segments(size_t requested_size, zend_shared_segment_posix ***shared_segments_p, int *shared_segments_count, char **error_in)
|
||||
static int create_segments(size_t requested_size, zend_shared_segment_posix ***shared_segments_p, int *shared_segments_count, const char **error_in)
|
||||
{
|
||||
zend_shared_segment_posix *shared_segment;
|
||||
char shared_segment_name[sizeof("/ZendAccelerator.") + 20];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue