s4:ldb:modules: Correct typos.
authorAndrew Kroeger <andrew@id10ts.net>
Tue, 26 May 2009 20:22:13 +0000 (15:22 -0500)
committerSimo Sorce <idra@samba.org>
Tue, 26 May 2009 20:38:39 +0000 (16:38 -0400)
source4/lib/ldb/common/ldb_controls.c
source4/lib/ldb/modules/asq.c
source4/lib/ldb/modules/paged_results.c
source4/lib/ldb/modules/sort.c

index 0c587e09055084702b86385dce11a4829dfaaa7b..6f127d8c39c57e79c716e46bde5471c1baf5b9a1 100644 (file)
@@ -39,7 +39,6 @@ struct ldb_control *ldb_request_get_control(struct ldb_request *req, const char
 {
        int i;
 
-       /* check if there's a paged request control */
        if (req->controls != NULL) {
                for (i = 0; req->controls[i]; i++) {
                        if (strcmp(oid, req->controls[i]->oid) == 0) {
@@ -59,7 +58,6 @@ struct ldb_control *ldb_reply_get_control(struct ldb_reply *rep, const char *oid
 {
        int i;
 
-       /* check if there's a paged request control */
        if (rep->controls != NULL) {
                for (i = 0; rep->controls[i]; i++) {
                        if (strcmp(oid, rep->controls[i]->oid) == 0) {
@@ -75,7 +73,7 @@ struct ldb_control *ldb_reply_get_control(struct ldb_reply *rep, const char *oid
 
 /* saves the current controls list into the "saver" and replace the one in req with a new one excluding
 the "exclude" control */
-/* returns False on error */
+/* returns 0 on error */
 int save_controls(struct ldb_control *exclude, struct ldb_request *req, struct ldb_control ***saver)
 {
        struct ldb_control **lcs;
index 475b609e412693d324fd4ea33bf1294fc77c1325..dd5afd868cd3fa144b9908f31bae4065a9b46603 100644 (file)
@@ -351,7 +351,7 @@ static int asq_search(struct ldb_module *module, struct ldb_request *req)
 
        ldb = ldb_module_get_ctx(module);
 
-       /* check if there's a paged request control */
+       /* check if there's an ASQ control */
        control = ldb_request_get_control(req, LDB_CONTROL_ASQ_OID);
        if (control == NULL) {
                /* not found go on */
index 2a06c5e6c5d62a89124bfb3f755a7da073843255..f2692305d55918a810626d06117ee8c9599c5cd4 100644 (file)
@@ -408,7 +408,7 @@ static int paged_request_init(struct ldb_module *module)
        ret = ldb_mod_register_control(module, LDB_CONTROL_PAGED_RESULTS_OID);
        if (ret != LDB_SUCCESS) {
                ldb_debug(ldb, LDB_DEBUG_WARNING,
-                       "paged_request:"
+                       "paged_results:"
                        "Unable to register control with rootdse!\n");
        }
 
index 309101c32b79eb8479a5fcf7a3899d66daff71a5..b4f76e1007a40204e6f71844b60f52aaeeb49a3b 100644 (file)
@@ -255,7 +255,7 @@ static int server_sort_search(struct ldb_module *module, struct ldb_request *req
 
        ldb = ldb_module_get_ctx(module);
 
-       /* check if there's a paged request control */
+       /* check if there's a server sort control */
        control = ldb_request_get_control(req, LDB_CONTROL_SERVER_SORT_OID);
        if (control == NULL) {
                /* not found go on */