mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 06:34:19 +00:00
use more correct const char * for things that should not be modified. This should also fix the switch_cpp.cpp changes from MODAPP-44. More patches to follow up on this for a few more modules that will likely break with this commit.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6120 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b416d80212
commit
622a2733dc
52 files changed
+254
-246
No files matched your search
@@ -71,12 +71,12 @@ SWITCH_BEGIN_EXTERN_C
|
||||
#else //not win32
|
||||
#define SWITCH_SM_DECLARE(type) type
|
||||
#endif
|
||||
int eval_some_js(char *code, JSContext * cx, JSObject * obj, jsval * rval)
|
||||
int eval_some_js(const char *code, JSContext * cx, JSObject * obj, jsval * rval)
|
||||
{
|
||||
JSScript *script = NULL;
|
||||
char *cptr;
|
||||
const char *cptr;
|
||||
char *path = NULL;
|
||||
char *script_name = NULL;
|
||||
const char *script_name = NULL;
|
||||
int result = 0;
|
||||
|
||||
JS_ClearPendingException(cx);
|
||||
|
||||
Reference in new issue
Block a user