Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
a1f16c81
Commit
a1f16c81
authored
May 01, 2000
by
David Lawrence
Browse files
removed unused stack variable "result" from totext_nxt
parent
7f1c97f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/rdata/generic/nxt_30.c
View file @
a1f16c81
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: nxt_30.c,v 1.2
8
2000/0
4/29 01:51:39 gson
Exp $ */
/* $Id: nxt_30.c,v 1.2
9
2000/0
5/01 18:27:43 tale
Exp $ */
/* reviewed: Wed Mar 15 18:21:15 PST 2000 by brister */
...
...
@@ -82,14 +82,13 @@ fromtext_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
}
static
inline
isc_result_t
totext_nxt
(
dns_rdata_t
*
rdata
,
dns_rdata_textctx_t
*
tctx
,
totext_nxt
(
dns_rdata_t
*
rdata
,
dns_rdata_textctx_t
*
tctx
,
isc_buffer_t
*
target
)
{
isc_region_t
sr
;
unsigned
int
i
,
j
;
dns_name_t
name
;
dns_name_t
prefix
;
isc_result_t
result
;
isc_boolean_t
sub
;
REQUIRE
(
rdata
->
type
==
30
);
...
...
@@ -110,11 +109,13 @@ totext_nxt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
if
((
sr
.
base
[
i
]
&
(
0x80
>>
j
))
!=
0
)
{
dns_rdatatype_t
t
=
i
*
8
+
j
;
if
(
dns_rdatatype_isknown
(
t
))
{
RETERR
(
dns_rdatatype_totext
(
t
,
target
));
RETERR
(
dns_rdatatype_totext
(
t
,
target
));
}
else
{
char
buf
[
sizeof
"65535"
];
sprintf
(
buf
,
"%u"
,
t
);
RETERR
(
str_totext
(
buf
,
target
));
RETERR
(
str_totext
(
buf
,
target
));
}
RETERR
(
str_totext
(
" "
,
target
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment