projects/aports·blob master · refs

25 lines · 713 B

1Description: replace private function _getshort with ns_get16
2 _getshort is a private function, triggers a build log warning because it's
3 not present in any header file. We switch to the functionally equivalent
4 ns_get16.
5Author: Lukas Schwaighofer <[email protected]>
6
7---
8 dns.c | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11--- a/dns.c
12+++ b/dns.c
13@@ -115,10 +115,10 @@
14 (u_char *)cp, (char *)bp, buflen)) < 0)
15 break;
16 cp += n;
17- type = _getshort(cp);
18+ type = ns_get16(cp);
19 cp += sizeof(u_short); /* class */
20 cp += sizeof(u_short) + sizeof(u_int32_t);
21- n = _getshort(cp);
22+ n = ns_get16(cp);
23 cp += sizeof(u_short);
24 if (type == T_HINFO) {
25 /* Unpack */