ldb - two cosmetic fixes
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 21 Jun 2011 09:32:02 +0000 (11:32 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 19 Aug 2011 17:31:03 +0000 (19:31 +0200)
@ldb.h: Removes an invalid comment line
@pyldb.c: Fixes indentation

lib/ldb/include/ldb.h
lib/ldb/pyldb.c

index 4220ed096fae6178d0c5c308eb938cced3dcc636..ae340192161402988a2922e7c7798ac6356f5610 100644 (file)
@@ -1425,8 +1425,6 @@ int ldb_build_extended_req(struct ldb_request **ret_req,
 /**
   call an extended operation
 
-  This function deletes a record from the database.
-
   \param ldb the context associated with the database (from ldb_init())
   \param oid the OID of the extended operation.
   \param data a void pointer a the extended operation specific parameters,
index 218505dd8c5e91bf899c3a38247b3bc1c9e19a6e..72680c1710f959c4800ed2cc460142f2c7c32437 100644 (file)
@@ -1143,11 +1143,11 @@ static PyObject *py_ldb_add(PyLdbObject *self, PyObject *args, PyObject *kwargs)
 
        ret = ldb_request(ldb_ctx, req);
        if (ret == LDB_SUCCESS) {
-                       ret = ldb_wait(req->handle, LDB_WAIT_ALL);
+               ret = ldb_wait(req->handle, LDB_WAIT_ALL);
        } 
 
        if (ret == LDB_SUCCESS) {
-                       ret = ldb_transaction_commit(ldb_ctx);
+               ret = ldb_transaction_commit(ldb_ctx);
        } else {
                ldb_transaction_cancel(ldb_ctx);
                if (ldb_ctx->err_string == NULL) {