r26573: Fix warnings.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 24 Dec 2007 03:27:58 +0000 (21:27 -0600)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Dec 2007 07:51:04 +0000 (01:51 -0600)
(This used to be commit 874f0ac0561e38a8c0ceda983f6c88c75ee29e9c)

source4/dsdb/samdb/ldb_modules/ranged_results.c
source4/libnet/libnet.h

index affc01d41324086b018f02c5bf33aaf842f3300e..345b8b84407b22b424a52b271a21892ce978a031 100644 (file)
@@ -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);
index 71ee8ef8e4d47fae97e02d7aa8cb7a8aebd5f545..015661a074d3e5aa31725064e7ef1838cf89ee54 100644 (file)
@@ -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;