r8499: clearer function name
authorSimo Sorce <idra@samba.org>
Fri, 15 Jul 2005 13:19:16 +0000 (13:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:10 +0000 (13:23 -0500)
source/scripting/ejs/smbcalls_ldb.c

index cdf3b3dd6ce6ba9956a6c05ba2a48e42d38ab6a5..c8c6366f2d9e56f1c13d550f3df87885faf06f04 100644 (file)
@@ -28,7 +28,7 @@
 /*
   get the connected db
  */
-static struct ldb_context *ejs_ldb_db(int eid)
+static struct ldb_context *ejs_get_ldb_context(int eid)
 {
        struct ldb_context *ldb = mprGetThisPtr(eid, "db");
        if (ldb == NULL) {
@@ -64,7 +64,7 @@ static int ejs_ldbSearch(MprVarHandle eid, int argc, struct MprVar **argv)
                goto failed;
        }
 
-       ldb = ejs_ldb_db(eid);
+       ldb = ejs_get_ldb_context(eid);
        if (ldb == NULL) {
                return -1;
        }
@@ -117,7 +117,7 @@ static int ejs_ldbAddModify(MprVarHandle eid, int argc, struct MprVar **argv,
                return -1;
        }
 
-       ldb = ejs_ldb_db(eid);
+       ldb = ejs_get_ldb_context(eid);
        if (ldb == NULL) {
                return -1;
        }
@@ -151,7 +151,7 @@ static int ejs_ldbDelete(MprVarHandle eid, int argc, struct MprVar **argv)
 
        dn = mprToString(argv[0]);
 
-       ldb = ejs_ldb_db(eid);
+       ldb = ejs_get_ldb_context(eid);
        if (ldb == NULL) {
                return -1;
        }
@@ -184,7 +184,7 @@ static int ejs_ldbRename(MprVarHandle eid, int argc, struct MprVar **argv)
                return -1;
        }
 
-       ldb = ejs_ldb_db(eid);
+       ldb = ejs_get_ldb_context(eid);
        if (ldb == NULL) {
                return -1;
        }