code before decl

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15634 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Jeff Lenk 2009-11-23 22:21:22 +00:00
parent f6e24c3c95
commit 6e1c86a8d8
1 changed files with 4 additions and 6 deletions

View File

@ -288,6 +288,8 @@ static JSBool db_bind_text(JSContext * cx, JSObject * obj, uintN argc, jsval * a
{
struct db_obj *dbo = JS_GetPrivate(cx, obj);
JSBool status;
uint32 param_index = -1;
char *param_value = NULL;
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
@ -307,8 +309,6 @@ static JSBool db_bind_text(JSContext * cx, JSObject * obj, uintN argc, jsval * a
return JS_FALSE;
}
uint32 param_index = -1;
char *param_value = NULL;
/* convert args */
@ -334,6 +334,8 @@ static JSBool db_bind_int(JSContext * cx, JSObject * obj, uintN argc, jsval * ar
{
struct db_obj *dbo = JS_GetPrivate(cx, obj);
JSBool status;
uint32 param_index = -1;
uint32 param_value = -1;
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
@ -353,10 +355,6 @@ static JSBool db_bind_int(JSContext * cx, JSObject * obj, uintN argc, jsval * ar
return JS_FALSE;
}
uint32 param_index = -1;
uint32 param_value = -1;
/* convert args */
status = JS_ValueToECMAUint32(cx, argv[0], &param_index);
switch_assert(status == JS_TRUE);