Merge pull request #3655 from onikitenko/vsftpd-fix
[feed/packages.git] / lang / php7-pecl-dio / patches / 0014-Add-missing-changes-from-changed-stream-API-interfac.patch
1 From ff469d3a11409e9b043dc10ddfc44792c5359ff1 Mon Sep 17 00:00:00 2001
2 From: Michael Heimpold <mhei@heimpold.de>
3 Date: Thu, 14 Jul 2016 01:47:05 +0200
4 Subject: [PATCH 14/16] Add missing changes from changed stream API interface
5
6 Signed-off-by: Michael Heimpold <mhei@heimpold.de>
7 ---
8 dio_posix.c | 2 +-
9 dio_stream_wrappers.c | 2 +-
10 php_dio_common.h | 2 +-
11 3 files changed, 3 insertions(+), 3 deletions(-)
12
13 diff --git a/dio_posix.c b/dio_posix.c
14 index 843e234..b2aa228 100644
15 --- a/dio_posix.c
16 +++ b/dio_posix.c
17 @@ -632,7 +632,7 @@ int dio_serial_purge(php_dio_stream_data *data) {
18 /* {{{ dio_serial_open_stream
19 * Opens the underlying stream.
20 */
21 -int dio_serial_open_stream(char *filename, char *mode, php_dio_stream_data *data) {
22 +int dio_serial_open_stream(const char *filename, const char *mode, php_dio_stream_data *data) {
23 php_dio_posix_stream_data *pdata = (php_dio_posix_stream_data*)data;
24
25 #ifdef O_NOCTTY
26 diff --git a/dio_stream_wrappers.c b/dio_stream_wrappers.c
27 index eb23752..0a00daa 100644
28 --- a/dio_stream_wrappers.c
29 +++ b/dio_stream_wrappers.c
30 @@ -292,7 +292,7 @@ static php_stream *dio_serial_fopen_wrapper(php_stream_wrapper *wrapper,
31 {
32 php_dio_stream_data *data;
33 php_stream *stream;
34 - char *filename;
35 + const char *filename;
36
37 /* Check it was actually for us (not a corrupted function pointer
38 somewhere!). */
39 diff --git a/php_dio_common.h b/php_dio_common.h
40 index 6af202f..7068ea7 100644
41 --- a/php_dio_common.h
42 +++ b/php_dio_common.h
43 @@ -61,7 +61,7 @@ int dio_serial_uninit(php_dio_stream_data *data);
44
45 int dio_serial_purge(php_dio_stream_data *data);
46
47 -int dio_serial_open_stream(char *filename, char *mode, php_dio_stream_data *data);
48 +int dio_serial_open_stream(const char *filename, const char *mode, php_dio_stream_data *data);
49
50 #endif /* PHP_DIO_COMMON_H_ */
51
52 --
53 2.5.0
54