Merge pull request #852 from signalwire/mod_signalwire_fix

[mod_signalwire] Fix build with newer signalwire-c v2.0
This commit is contained in:
Andrey Volk 2020-09-15 19:36:00 +04:00 committed by GitHub
commit da278e0b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View 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