From 9e709e2fa02b85d0d10c864d6c996e3368e977ce Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 14 Dec 2017 18:43:44 +0300 Subject: Move constants into read-only data segment --- ext/soap/php_sdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/soap/php_sdl.c') 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; -- cgit v1.2.1