mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:addns: Rename additionals to additional
Fixes code spelling. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
8720a25d57
commit
f59e813c76
@ -197,7 +197,7 @@ struct dns_request {
|
||||
struct dns_question **questions;
|
||||
struct dns_rrec **answers;
|
||||
struct dns_rrec **auths;
|
||||
struct dns_rrec **additionals;
|
||||
struct dns_rrec **additional;
|
||||
};
|
||||
|
||||
/*
|
||||
@ -216,7 +216,7 @@ struct dns_update_request {
|
||||
struct dns_zone **zones;
|
||||
struct dns_rrec **preqs;
|
||||
struct dns_rrec **updates;
|
||||
struct dns_rrec **additionals;
|
||||
struct dns_rrec **additional;
|
||||
};
|
||||
|
||||
struct dns_connection {
|
||||
|
@ -138,7 +138,7 @@ static DNS_ERROR dns_negotiate_gss_ctx_int( TALLOC_CTX *mem_ctx,
|
||||
&req->answers);
|
||||
} else {
|
||||
err = dns_add_rrec(req, rec, &req->num_additionals,
|
||||
&req->additionals);
|
||||
&req->additional);
|
||||
}
|
||||
|
||||
if (!ERR_DNS_IS_OK(err)) goto error;
|
||||
@ -334,7 +334,7 @@ DNS_ERROR dns_sign_update(struct dns_update_request *req,
|
||||
gss_release_buffer(&minor, &mic);
|
||||
if (!ERR_DNS_IS_OK(err)) goto error;
|
||||
|
||||
err = dns_add_rrec(req, rec, &req->num_additionals, &req->additionals);
|
||||
err = dns_add_rrec(req, rec, &req->num_additionals, &req->additional);
|
||||
|
||||
error:
|
||||
TALLOC_FREE(buf);
|
||||
|
@ -369,7 +369,7 @@ DNS_ERROR dns_marshall_request(TALLOC_CTX *mem_ctx,
|
||||
dns_marshall_rr(buf, req->auths[i]);
|
||||
}
|
||||
for (i=0; i<req->num_additionals; i++) {
|
||||
dns_marshall_rr(buf, req->additionals[i]);
|
||||
dns_marshall_rr(buf, req->additional[i]);
|
||||
}
|
||||
|
||||
if (!ERR_DNS_IS_OK(buf->error)) {
|
||||
@ -424,7 +424,7 @@ DNS_ERROR dns_unmarshall_request(TALLOC_CTX *mem_ctx,
|
||||
goto error;
|
||||
}
|
||||
if ((req->num_additionals != 0) &&
|
||||
!(req->additionals = talloc_zero_array(req, struct dns_rrec *,
|
||||
!(req->additional = talloc_zero_array(req, struct dns_rrec *,
|
||||
req->num_additionals))) {
|
||||
goto error;
|
||||
}
|
||||
@ -442,8 +442,8 @@ DNS_ERROR dns_unmarshall_request(TALLOC_CTX *mem_ctx,
|
||||
&req->auths[i]);
|
||||
}
|
||||
for (i=0; i<req->num_additionals; i++) {
|
||||
dns_unmarshall_rr(req->additionals, buf,
|
||||
&req->additionals[i]);
|
||||
dns_unmarshall_rr(req->additional, buf,
|
||||
&req->additional[i]);
|
||||
}
|
||||
|
||||
if (!ERR_DNS_IS_OK(buf->error)) {
|
||||
@ -492,7 +492,7 @@ struct dns_request *dns_update2request(struct dns_update_request *update)
|
||||
(struct dns_question **)(void *)update->zones) &&
|
||||
(req->answers == update->preqs) &&
|
||||
(req->auths == update->updates) &&
|
||||
(req->additionals == update->additionals));
|
||||
(req->additional == update->additional));
|
||||
#endif
|
||||
|
||||
return req;
|
||||
|
Loading…
Reference in New Issue
Block a user