summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-12 11:02:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:50:01 -0500
commit52cf4bd0e1d61b0b23baade8041f1ca7f2e1203f (patch)
tree44484762d3abcd2b3420cb8a0c52c2354205d3d7 /source4/torture/rpc
parent2eb8b675d15b9602c9aab6839b51932f50758cbc (diff)
downloadsamba-52cf4bd0e1d61b0b23baade8041f1ca7f2e1203f.tar.gz
samba-52cf4bd0e1d61b0b23baade8041f1ca7f2e1203f.tar.bz2
samba-52cf4bd0e1d61b0b23baade8041f1ca7f2e1203f.zip
r22190: fix compiler warnings and remove unused talloc_reference()
metze (This used to be commit 60145f3c5bca2227efd8de9ebfe35f536fbbd860)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samsync.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c
index 91e02d54e3..3d6b104b7e 100644
--- a/source4/torture/rpc/samsync.c
+++ b/source4/torture/rpc/samsync.c
@@ -112,7 +112,7 @@ static NTSTATUS test_SamLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct samsync_state {
/* we remember the sequence numbers so we can easily do a DatabaseDelta */
uint64_t seq_num[3];
- char *domain_name[2];
+ const char *domain_name[2];
struct samsync_secret *secrets;
struct samsync_trusted_domain *trusted_domains;
struct creds_CredentialState *creds;
@@ -130,14 +130,14 @@ struct samsync_state {
struct samsync_secret {
struct samsync_secret *prev, *next;
DATA_BLOB secret;
- char *name;
+ const char *name;
NTTIME mtime;
};
struct samsync_trusted_domain {
struct samsync_trusted_domain *prev, *next;
struct dom_sid *sid;
- char *name;
+ const char *name;
};
static struct policy_handle *samsync_open_domain(TALLOC_CTX *mem_ctx,
@@ -324,7 +324,6 @@ static BOOL samsync_handle_domain(TALLOC_CTX *mem_ctx, struct samsync_state *sam
}
if (samsync_state->domain_handle[database_id]) {
samsync_state->sid[database_id] = talloc_reference(samsync_state, dom_sid);
- talloc_reference(dom_sid, dom_sid->sub_auths);
}
printf("\tsequence_nums[%d/%s]=%llu\n",