summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/samdb/ldb_modules/ranged_results.c2
-rw-r--r--source4/libnet/libnet.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/ranged_results.c b/source4/dsdb/samdb/ldb_modules/ranged_results.c
index affc01d413..345b8b8440 100644
--- a/source4/dsdb/samdb/ldb_modules/ranged_results.c
+++ b/source4/dsdb/samdb/ldb_modules/ranged_results.c
@@ -40,7 +40,7 @@ static int rr_search_callback(struct ldb_context *ldb, void *context, struct ldb
{
struct rr_context *rr_context = talloc_get_type(context, struct rr_context);
struct ldb_request *orig_req = rr_context->orig_req;
- int i, j, ret;
+ int i, j;
if (ares->type != LDB_REPLY_ENTRY) {
return rr_context->orig_req->callback(ldb, rr_context->orig_req->context, ares);
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h
index 71ee8ef8e4..015661a074 100644
--- a/source4/libnet/libnet.h
+++ b/source4/libnet/libnet.h
@@ -30,7 +30,7 @@ struct libnet_context {
/* samr connection parameters - opened handles and related properties */
struct {
struct dcerpc_pipe *pipe;
- char *name;
+ const char *name;
struct dom_sid *sid;
uint32_t access_mask;
struct policy_handle handle;
@@ -41,7 +41,7 @@ struct libnet_context {
/* lsa connection parameters - opened handles and related properties */
struct {
struct dcerpc_pipe *pipe;
- char *name;
+ const char *name;
uint32_t access_mask;
struct policy_handle handle;
} lsa;