samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r18889 - in branches/SAMBA_3_0/source/lib/ldb/common:

Subject: svn commit: samba r18889 - in branches/SAMBA_3_0/source/lib/ldb/common: .
From:
Date: Mon, 25 Sep 2006 04:55:08 +0000 GMT
Author: vlendec
Date: 2006-09-25 04:55:07 +0000 (Mon, 25 Sep 2006)
New Revision: 18889

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18889

Log:
Add some const. What's the policy here? Should I do this in Samba4 as well?

Volker

Modified:
   branches/SAMBA_3_0/source/lib/ldb/common/ldb.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/common/ldb.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/common/ldb.c      2006-09-25 04:52:30 UTC 
(rev 18888)
+++ branches/SAMBA_3_0/source/lib/ldb/common/ldb.c      2006-09-25 04:55:07 UTC 
(rev 18889)
@@ -613,7 +613,7 @@
 int ldb_build_add_req(struct ldb_request **ret_req,
                        struct ldb_context *ldb,
                        void *mem_ctx,
-                       struct ldb_message *message,
+                       const struct ldb_message *message,
                        struct ldb_control **controls,
                        void *context,
                        ldb_request_callback_t callback)
@@ -642,7 +642,7 @@
 int ldb_build_mod_req(struct ldb_request **ret_req,
                        struct ldb_context *ldb,
                        void *mem_ctx,
-                       struct ldb_message *message,
+                       const struct ldb_message *message,
                        struct ldb_control **controls,
                        void *context,
                        ldb_request_callback_t callback)
@@ -671,7 +671,7 @@
 int ldb_build_del_req(struct ldb_request **ret_req,
                        struct ldb_context *ldb,
                        void *mem_ctx,
-                       struct ldb_dn *dn,
+                       const struct ldb_dn *dn,
                        struct ldb_control **controls,
                        void *context,
                        ldb_request_callback_t callback)
@@ -700,8 +700,8 @@
 int ldb_build_rename_req(struct ldb_request **ret_req,
                        struct ldb_context *ldb,
                        void *mem_ctx,
-                       struct ldb_dn *olddn,
-                       struct ldb_dn *newdn,
+                       const struct ldb_dn *olddn,
+                       const struct ldb_dn *newdn,
                        struct ldb_control **controls,
                        void *context,
                        ldb_request_callback_t callback)

<Prev in Thread] Current Thread [Next in Thread>