summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-12-14 18:43:44 +0300
committerDmitry Stogov <dmitry@zend.com>2017-12-14 18:43:44 +0300
commit9e709e2fa02b85d0d10c864d6c996e3368e977ce (patch)
tree148bedd2674933ba40e59f15fcfa2981f7aead85 /ext/soap/php_sdl.c
parent71eaf0d97f173093253163db8c4720bd62387e34 (diff)
downloadphp-git-9e709e2fa02b85d0d10c864d6c996e3368e977ce.tar.gz
Move constants into read-only data segment
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 08f750bea9..1a464167c7 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -1533,7 +1533,7 @@ static sdlPtr get_sdl_from_cache(const char *fn, const char *uri, time_t t, time
sdlBindingPtr *bindings;
sdlTypePtr *types;
encodePtr *encoders;
- encodePtr enc;
+ const encode *enc;
int f;
struct stat st;
@@ -1614,7 +1614,7 @@ static sdlPtr get_sdl_from_cache(const char *fn, const char *uri, time_t t, time
i = num_encoders;
enc = defaultEncoding;
while (enc->details.type != END_KNOWN_TYPES) {
- encoders[++i] = enc++;
+ encoders[++i] = (encodePtr)enc++;
}
i = 1;
@@ -2103,7 +2103,7 @@ static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr s
int type_num = 1;
int encoder_num = 1;
int f;
- encodePtr enc;
+ const encode *enc;
HashTable tmp_types;
HashTable tmp_encoders;
HashTable tmp_bindings;