diff --git a/src/include/switch_core.h b/src/include/switch_core.h index 5fefc9b5b6..4e5bac10e9 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -1654,7 +1654,7 @@ SWITCH_DECLARE(uint32_t) switch_core_default_dtmf_duration(uint32_t duration); SWITCH_DECLARE(switch_status_t) switch_console_set_complete(const char *string); SWITCH_DECLARE(switch_status_t) switch_console_set_alias(const char *string); -SWITCH_DECLARE(int) switch_system(char *cmd, switch_bool_t wait); +SWITCH_DECLARE(int) switch_system(const char *cmd, switch_bool_t wait); ///\} diff --git a/src/switch_core.c b/src/switch_core.c index 53d61bedce..e8411fa3d7 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1459,7 +1459,7 @@ static void *SWITCH_THREAD_FUNC system_thread(switch_thread_t *thread, void *obj return NULL; } -SWITCH_DECLARE(int) switch_system(char *cmd, switch_bool_t wait) +SWITCH_DECLARE(int) switch_system(const char *cmd, switch_bool_t wait) { switch_thread_t *thread; switch_threadattr_t *thd_attr;