]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_signalwire] Fix build with newer signalwire-c v2.0 852/head
authorAndrey Volk <andywolk@gmail.com>
Tue, 15 Sep 2020 15:14:48 +0000 (19:14 +0400)
committerAndrey Volk <andywolk@gmail.com>
Tue, 15 Sep 2020 15:14:48 +0000 (19:14 +0400)
src/mod/applications/mod_signalwire/mod_signalwire.c

index 263307962d6ce32bc481eb05f5d2365550d09ffe..15e067298439174a9e8b2195fb94dd4362315a07 100644 (file)
@@ -221,7 +221,7 @@ static ks_status_t load_credentials_from_json(ks_json_t *json)
 {
        ks_status_t status = KS_STATUS_SUCCESS;
        ks_json_t *authentication = NULL;
-       const char *authentication_str = NULL;
+       char *authentication_str = NULL;
        const char *bootstrap = NULL;
        const char *relay_connector_id = NULL;
 
@@ -1169,7 +1169,7 @@ static void mod_signalwire_state_configure(void)
                        result = ks_json_get_object_item(result, "result");
                        if (!SIGNALWIRE_PROVISIONING_CONFIGURE_RESPONSE_PARSE(ks_handle_pool(cmd), result, &configure_res)) {
 #endif
-                               const ks_json_t *configuration = configure_res->configuration;
+                               ks_json_t *configuration = configure_res->configuration;
 #if SIGNALWIRE_CLIENT_C_VERSION_MAJOR >= 2
                                const char *configuration_profile = ks_json_get_string(configuration, "profile");
 #else