From 2641ca94f02b697e3ca5997da44008e5d115b59a Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 4 Mar 2010 23:53:40 +0000 Subject: [PATCH] I hate that notation git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16910 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../mod_spidermonkey/mod_spidermonkey_teletone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey_teletone.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey_teletone.c index 8c44eb6d77..d68e87c4a9 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey_teletone.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey_teletone.c @@ -169,16 +169,16 @@ static JSBool teletone_add_tone(JSContext * cx, JSObject * obj, uintN argc, jsva 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); }