Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey_teletone.c (16909 => 16910)
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey_teletone.c 2010-03-04 23:51:48 UTC (rev 16909)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey_teletone.c 2010-03-04 23:53:40 UTC (rev 16910)
@@ -169,16 +169,16 @@
struct teletone_obj *tto = JS_GetPrivate(cx, obj);
if (argc > 2) {
int x;
- int nMax = argc;
+ int nmax = argc;
char *fval;
char *map_str;
map_str = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
- if ( TELETONE_MAX_TONES < nMax ) {
- nMax = TELETONE_MAX_TONES;
+ if ( TELETONE_MAX_TONES < nmax ) {
+ nmax = TELETONE_MAX_TONES;
}
- for (x = 1; x < nMax; x++) {
+ for (x = 1; x < nmax; x++) {
fval = JS_GetStringBytes(JS_ValueToString(cx, argv[x]));
tto->ts.TONES[(int) *map_str].freqs[x - 1] = strtod(fval, NULL);
}