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
6 Signed-off-by: Michael Heimpold <mhei@heimpold.de>
9 dio_stream_wrappers.c | 2 +-
10 php_dio_common.h | 2 +-
11 3 files changed, 3 insertions(+), 3 deletions(-)
13 diff --git a/dio_posix.c b/dio_posix.c
14 index 843e234..b2aa228 100644
17 @@ -632,7 +632,7 @@ int dio_serial_purge(php_dio_stream_data *data) {
18 /* {{{ dio_serial_open_stream
19 * Opens the underlying stream.
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;
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,
32 php_dio_stream_data *data;
35 + const char *filename;
37 /* Check it was actually for us (not a corrupted function pointer
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);
45 int dio_serial_purge(php_dio_stream_data *data);
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);
50 #endif /* PHP_DIO_COMMON_H_ */