r17788: fix compiler warnings
authorStefan Metzmacher <metze@samba.org>
Thu, 24 Aug 2006 10:41:31 +0000 (10:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:42 +0000 (14:16 -0500)
metze
(This used to be commit 00fcc4f16a01a0c6a70f86c8bd9d1f9801dfd9df)

source4/dsdb/samdb/ldb_modules/samldb.c
source4/dsdb/samdb/samdb.c
source4/rpc_server/lsa/dcesrv_lsa.c

index e9ddb7cad71478edd7d5320a3ade69336f4b12bb..98acc2696f6ed76f23e1786d2558b4376afa4328 100644 (file)
@@ -435,7 +435,7 @@ static int samldb_fill_group_object(struct ldb_module *module, const struct ldb_
        struct ldb_message *msg2;
        struct ldb_dn_component *rdn;
        TALLOC_CTX *mem_ctx = talloc_new(msg);
-       char *errstr;
+       const char *errstr;
        if (!mem_ctx) {
                return LDB_ERR_OPERATIONS_ERROR;
        }
@@ -498,7 +498,7 @@ static int samldb_fill_user_or_computer_object(struct ldb_module *module, const
        struct ldb_message *msg2;
        struct ldb_dn_component *rdn;
        TALLOC_CTX *mem_ctx = talloc_new(msg);
-       char *errstr;
+       const char *errstr;
        if (!mem_ctx) {
                return LDB_ERR_OPERATIONS_ERROR;
        }
@@ -603,7 +603,7 @@ static int samldb_fill_foreignSecurityPrincipal_object(struct ldb_module *module
        struct dom_sid *sid;
        const char *dom_attrs[] = { "name", NULL };
        struct ldb_message **dom_msgs;
-       char *errstr;
+       const char *errstr;
        int ret;
 
        TALLOC_CTX *mem_ctx = talloc_new(msg);
index 51f4c915690bb07cc78c3a6b8c8a2ed5487fa707..a48e21f52d323bd99dde464da035e1893916b26c 100644 (file)
@@ -675,7 +675,7 @@ int samdb_find_or_add_attribute(struct ldb_context *ldb, struct ldb_message *msg
 */
 int samdb_copy_template(struct ldb_context *ldb, 
                        struct ldb_message *msg, const char *filter,
-                       char **errstring)
+                       const char **errstring)
 {
        struct ldb_result *res;
        struct ldb_message *t;
index fd394b2f05b0bcf628f889abbeb5abfa56c534e6..860f6e5c799c67b24b3b91a2a3a1147a6b8c72e9 100644 (file)
@@ -1769,7 +1769,7 @@ static NTSTATUS lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALLOC_CTX
        struct lsa_secret_state *secret_state;
        struct dcesrv_handle *handle;
        struct ldb_message **msgs, *msg;
-       char *errstr;
+       const char *errstr;
        const char *attrs[] = {
                NULL
        };