diff options
author | Andreas Schneider <asn@samba.org> | 2023-03-31 11:00:50 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-04-03 03:56:35 +0000 |
commit | f59e813c76027184b9d57420e5fb73582505b857 (patch) | |
tree | 464214d908b720fceb6b03c250b59000667f8449 /lib/addns | |
parent | 8720a25d57819ea51c304c9f76f84c6aa18fb2ae (diff) | |
download | samba-f59e813c76027184b9d57420e5fb73582505b857.tar.gz |
lib:addns: Rename additionals to additional
Fixes code spelling.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/addns')
-rw-r--r-- | lib/addns/dns.h | 4 | ||||
-rw-r--r-- | lib/addns/dnsgss.c | 4 | ||||
-rw-r--r-- | lib/addns/dnsmarshall.c | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/lib/addns/dns.h b/lib/addns/dns.h index 1f61d6e5bda..2c311e72a00 100644 --- a/lib/addns/dns.h +++ b/lib/addns/dns.h @@ -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 { diff --git a/lib/addns/dnsgss.c b/lib/addns/dnsgss.c index a446da670f7..a315b804df4 100644 --- a/lib/addns/dnsgss.c +++ b/lib/addns/dnsgss.c @@ -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); diff --git a/lib/addns/dnsmarshall.c b/lib/addns/dnsmarshall.c index a07ed784ce1..6c93b98144f 100644 --- a/lib/addns/dnsmarshall.c +++ b/lib/addns/dnsmarshall.c @@ -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; |