1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

r14439: fix warnings

metze
This commit is contained in:
Stefan Metzmacher 2006-03-15 10:28:35 +00:00 committed by Gerald (Jerry) Carter
parent 83d2978da1
commit 3b712b70f0

View File

@ -220,12 +220,12 @@ void cldapd_netlogon_request(struct cldap_socket *cldap,
if (t->operation != LDB_OP_EQUALITY) goto failed;
if (strcasecmp(t->u.equality.attr, "DnsDomain") == 0) {
domain = talloc_strndup(tmp_ctx,
t->u.equality.value.data,
(const char *)t->u.equality.value.data,
t->u.equality.value.length);
}
if (strcasecmp(t->u.equality.attr, "Host") == 0) {
host = talloc_strndup(tmp_ctx,
t->u.equality.value.data,
(const char *)t->u.equality.value.data,
t->u.equality.value.length);
}
if (strcasecmp(t->u.equality.attr, "DomainGuid") == 0) {
@ -239,12 +239,12 @@ void cldapd_netlogon_request(struct cldap_socket *cldap,
}
if (strcasecmp(t->u.equality.attr, "DomainSid") == 0) {
domain_sid = talloc_strndup(tmp_ctx,
t->u.equality.value.data,
(const char *)t->u.equality.value.data,
t->u.equality.value.length);
}
if (strcasecmp(t->u.equality.attr, "User") == 0) {
user = talloc_strndup(tmp_ctx,
t->u.equality.value.data,
(const char *)t->u.equality.value.data,
t->u.equality.value.length);
}
if (strcasecmp(t->u.equality.attr, "NtVer") == 0 &&