diff options
author | Derrell Lipman <derrell@samba.org> | 2005-05-26 02:16:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:02 -0500 |
commit | a81630c0c43c756b74feea84019769357f03a3e5 (patch) | |
tree | 0055f6e1ac8844ff44f2843fbc1b4e2fc604f150 /source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c | |
parent | fd82bfce3dd95de1b98fc9bf26ea2a2f9bcc0d00 (diff) | |
download | samba-a81630c0c43c756b74feea84019769357f03a3e5.tar.gz samba-a81630c0c43c756b74feea84019769357f03a3e5.tar.bz2 samba-a81630c0c43c756b74feea84019769357f03a3e5.zip |
r6984: added tree representation documentation and utility code, to be used for subclasses of object classes
(This used to be commit 7aca32dca6daac54ac77a66438bc5168d5e04227)
Diffstat (limited to 'source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c')
-rw-r--r-- | source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c index 67debd8a4e..932da0af31 100644 --- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c +++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c @@ -457,7 +457,7 @@ static int lsqlite3_lock(struct ldb_module *module, const char *lockname) /* Write-lock (but not read-lock) the database */ lsqlite3->last_rc = sqlite3_step(lsqlite3->begin); - /* Ready the compiled statememt for its next use */ + /* Ready the compiled statement for its next use */ (void ) sqlite_reset(lsqlite3->begin); return lsqlite3->last_rc == 0 ? 0 : -1; @@ -484,7 +484,7 @@ static int lsqlite3_unlock(struct ldb_module *module, const char *lockname) /* Final unlock. Unlock the database */ lsqlite3->last_rc = sqlite3_step(lsqlite3->commit); - /* Ready the compiled statememt for its next use */ + /* Ready the compiled statement for its next use */ (void ) sqlite_reset(lsqlite3->commit); } @@ -904,7 +904,7 @@ struct ldb_context *lsqlite3_connect(const char *url, lsqlite3->lock_count = 0; lsqlite3->last_rc = lsqlite3_initialize(&lsqlite3->sqlite3, url); - if (lsqlite3->last_rc != LDAP_SUCCESS) { + if (lsqlite3->last_rc != SQLITE_SUCCESS) { goto failed; } |