summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-24 10:41:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:42 -0500
commit6268e2f148a1d2487b5d2c825333b3bc866b79a6 (patch)
tree7995f9ac97fb96b5d3479d4c1aaeaa1415a19fed /source4
parent403530d0ecbb7df31325141e04d1544dda1d5304 (diff)
downloadsamba-6268e2f148a1d2487b5d2c825333b3bc866b79a6.tar.gz
samba-6268e2f148a1d2487b5d2c825333b3bc866b79a6.tar.bz2
samba-6268e2f148a1d2487b5d2c825333b3bc866b79a6.zip
r17788: fix compiler warnings
metze (This used to be commit 00fcc4f16a01a0c6a70f86c8bd9d1f9801dfd9df)
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c6
-rw-r--r--source4/dsdb/samdb/samdb.c2
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index e9ddb7cad7..98acc2696f 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -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);
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index 51f4c91569..a48e21f52d 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -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;
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index fd394b2f05..860f6e5c79 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -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
};